Closed Holbanner closed 5 years ago
Please share your project files on GitHub.
Would if i was allowed to.
If you were I, what you would do?
Wait for me to drop actual code repo, which i'm trying to do but i don't reproduce the crash on a small project with the same code implementation. Since i've got plenty of plugins amongst which there are android known dependencies problem, i hoped you add any ideas on the part. Maybe even seen the problem elsewhere' I'll just close and keep looking, thanks for your time
Hi, Reopenning this since I managed to trime the project enough to be allowed to share it while reproducing the issue. Here is the github repo : https://github.com/Holbanner/ionimaps-issue.git
Please not that for it to work, once you've added android platform you should set all android support libraries version to 27.+, both play-service lib to 16.0.0 and firebase messaging to 17.3.4. I usually do this by changing them in /platforms/android/project.properties
You'll also might need a google-services.json file for firebase plugin to let you compile. If you need me to provide it, please reach out to me so i can provide it to you privately
I don't support the conflict problem with other plugins.
Please recreate a project which uses only this plugin. Until the time, I close this thread.
Allright, found the source of the problem. Not sure as to why i'm the only one facing this. The app crashes because it doesn't find the API key In the AndroidManifest.xml
Manually adding the key
For some reasons the first time i compile it, it add the key, then if i recompile it, it removes the key from android.xml Edit : if someone ever digs this up here was the problem :Since cordova-custom-config@5 now needs variable to be prefixed to custom-variable in the config.xml to be written in the androidManifest.xml, hence the API key not being taken into account.
I'm submitting a ... (check one with "x")
If you choose 'problem or bug report', please select OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly) "@ionic-native/core": "^4.17.0", "@ionic-native/google-maps": "^4.15.1",Current behavior:
When opening the map on Android devices, the App crashes without errors. Works fine on IOS
Expected behavior:
The map opens Screen capture or video record:
Related code, data or error log (please format your code or data):
Here is how i create and open the map :
the crash occures on GoogleMaps.create(this.mapHTML);
Allready tried to change my app name using the in the config.xml, but still get the crash