question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ionic - when loading the second map for the first time screen turns black on IOS

See original GitHub issue

I’m submitting a … (check one with “x”)

  • question
  • any problem or bug report
  • feature request

If you choose ‘problem or bug report’, please select OS: (check one with “x”)

  • Android
  • iOS

cordova information: (run $> cordova plugin list)

com.googlemaps.ios 2.5.0 "Google Maps SDK for iOS"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-googlemaps 2.2.0-beta-20180122-2314 "cordova-plugin-googlemaps"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"

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.5.2",
 "@ionic-native/google-maps": "4.5.2",
 "@ionic-native/splash-screen": "4.5.2",
 "@ionic-native/status-bar": "4.5.2",

Current behavior: First map on main page loads and looks fine. When I attempt to open a second map on a second page, I get black screen for the first time. Next attempt is successful. Works fine on Android all the time.

Expected behavior: Map should load OK for the first time too.

Screen capture or video record:

https://youtu.be/tPSNRXUXBtU

Related code, data or error log (please format your code or data):

https://github.com/battika/ionic-gmaps-test

Run this code on IOS and click the Open Second Page button on the bottom. Map will not render on the second page and the screen turns black. Go back to the first screen and click the button again. Map will render OK for the next time. It works well on Android.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
wf9a5m75commented, Jan 24, 2018

Try 2.2.0-beta-20180124-1245

2020

0reactions
wf9a5m75commented, Apr 12, 2018

Did you install the multiple_maps branch?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic View showing black screen after splash ... - Stack Overflow
My app is working successfully with ionic v1 on ios and android devices with all versions. But iphone 5 shows black screen after...
Read more >
It shows black screen when trying to load Map on device with ...
It shows black screen when trying to load Map on device with ionic 2 Google Map Native plugin.
Read more >
app has black screen on device. wo… - Apple Developer
problem - app shows launch screen and then shows a black screen without any UI. the app works fine on simulator ios 13...
Read more >
Brief black screen during navigation - Ionic Forum
I have the same problem. In the sidemenu demo, whenever I select a playlist to navigate to, the page which being hidden by...
Read more >
Mobile App Development with Ionic, Revised Edition
ored when both of you took the time to carefully read through my first book. ... Second is the discoverability of the application....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found