-
Notifications
You must be signed in to change notification settings - Fork 592
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
[DevicePlugin] unrecognized selector sent to instance... crashes app on iOS emulators only #598
Comments
This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue. Please see the Contributing Guide for how to create a Code Reproduction. Thanks! |
Didn't manage to create a code reproduction, but managed to narrow down search to |
I've been facing the exact same issue, not just on iOS emulator but also on Android. This has happened after I removed and added platforms again because I had some other issue. Before, I thought it was because I updated dependencies for Capacitors but then I tried downgraded them and the issue still exists. When I commented the push notification parts in my code, everything works fine. |
Well, for me it's purely the vault. And what's interesting even if I don't use it the app crashes. Only when I delete the plugin from packages it starts working. No issues with the Android emulators. It looks like on the iOS it tries to reach to some kind of API/View which isn't included there |
For Android I just figured it out that changing the version of com.google.gms:google-services in build.gradle (project-level) from 4.3.10 back to 4.3.5 solved the issue. And for iOS it was from another issue which coincidentally made me assume it was form the same issue. My bad 😁 |
This is a bug in identity vault, has been fixed, will be available on next release of the plugin. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out. |
Bug Report
Plugin(s)
"@capacitor/device": "^1.0.3"
Capacitor Version
Platform(s)
iOS simulator
Current Behavior
On simulators app launches, black screen is shown for a while and then app is closed.
Interestingly when app is opened through XCode's build it works, then if I close the app debugger detaches and then if I open the app by clicking on the icon on the simulator the issue is observed.
Expected Behavior
It should work.
Code Reproduction
It's not clear to me what causes this issue
Other Technical Details
There is a bit of logs that I managed to gather with Console
Additional Context
The text was updated successfully, but these errors were encountered: