Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add standardized support for device metadata #6

Open
supernintendo opened this issue Jun 8, 2023 · 0 comments
Open

Add standardized support for device metadata #6

supernintendo opened this issue Jun 8, 2023 · 0 comments

Comments

@supernintendo
Copy link
Contributor

@DanielDent says:

I'd really like to see standardized support for sending device state information back to the server from the client. Examples I have in mind: app bundle id, version name, version code, device type, language/locale info, OS version, SDK version, install UUID, etc. Likewise with information about permission state (e.g. asked, unasked, granted, denied) for the various permissions an app might need.

Here are some examples of handling of these types of issues with the NativeScript project:

https://github.com/nativescript-community/perms
https://github.com/EddyVerbruggen/nativescript-appversion
https://docs.nativescript.org/api-reference/interfaces/idevice
https://github.com/NativeScript/NativeScript/blob/ee701db13/packages/core/platform/index.d.ts#L121
Sometimes a new capability or a bugfix requires a new build of the mobile app, and being able to serve different application variations based on the client's version/capabilities/state can be extremely helpful/essential.

These are great ideas, just a bit larger in scope than what I think the original issue asked for. I've moved it here to consider as a general approach to passing device-specific state across any LiveView Native platform 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant