Skip to content

Issues in production on mobile browsers #79

Open
@strangecarr

Description

@strangecarr

Describe the bug
After building for production, the RWebshare component doesn't work on mobile browsers (it works on mobile browsers using development server). Only the original web share API works, and the RWebshare UI doesn't render, or the onClick callback does not fire.

I am using Nextjs, so perhaps its an issue with the build.

I really need to onClick callback in my app, so this is causing me quite a headache.

Sandbox / Git Repo
Here is a repo that works fine in local development, but not on mobile browsers in production:
https://github.com/strangecarr/ts-nextjs-tailwind-starter.git
https://web-share-de

Also, see web browser screencast of the webshare component in local dev vs production:

Development server (working - the onClick callback fires an alert popup)
https://user-images.githubusercontent.com/52605713/213854889-93ace864-bbb3-4185-9bfb-6eebd19cf96a.mp4

Production (not working):
https://user-images.githubusercontent.com/52605713/213854813-e427d3b6-689e-42c9-a5f3-b46e8e837275.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions