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

Android APK+OBB initialization fails #1661

Open
bitsandfoxes opened this issue May 24, 2024 · 1 comment
Open

Android APK+OBB initialization fails #1661

bitsandfoxes opened this issue May 24, 2024 · 1 comment
Labels
Bug Something isn't working Platform: Android Sync: Jira apply to auto-create a Jira shadow ticket

Comments

@bitsandfoxes
Copy link
Contributor

bitsandfoxes commented May 24, 2024

When exporting the project as APK+OBB the ScriptableSentryOptions we keep in /Resources/Sentry ends up in the OBB. That OBB might not be available just yet when the SDK tries to self-initialize.

We need to find a way to keep the options available in the actual APK - i.e. by holding a reference to it.
Ideas that come to mind: We have a SentryMonoBehaviour. But we instantiate that not via prefab but we generate a new GO and add it as a component.
Can we modify the first scene and add & save?

┆Issue is synchronized with this Jira Improvement by Unito

@bitsandfoxes bitsandfoxes added Bug Something isn't working Platform: Android labels May 24, 2024
@irodrigues-git irodrigues-git added the Sync: Jira apply to auto-create a Jira shadow ticket label May 24, 2024
@bitsandfoxes
Copy link
Contributor Author

An idea @munkiki7 came up with: We could check whether APK + OBB is selected during the build and copy the options from the scriptable object to the main bundle i.e. the androidmanifest.xml?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Platform: Android Sync: Jira apply to auto-create a Jira shadow ticket
Projects
Status: No status
Development

No branches or pull requests

2 participants