Google Maps JavaScript SDK --prod --release problem

I use Google SDK to draw maps

during dev, all worked correct, but when i started to build for release, maps stopped to draw, 2 js errors appear:

You have included the Google Maps API multiple times on this page. This may cause unexpected errors.

InvalidValueError: mapInit is not a function

If build without --prod --release all works correct

may be problem in code minimization?

Please find out if the same problem occurs if only building with --prod and not --release.

Also post your ionic info output please.

Hi, Sujan, with --prod map and locations appear
with --release not

cli packages: (/Users/macbook/IOS/PremoveExpert/node_modules)

    @ionic/cli-utils  : 1.10.2
    ionic (Ionic CLI) : 3.10.3

global packages:

    Cordova CLI : 7.0.1

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : android 6.2.3 ios 4.4.0
    Ionic Framework    : ionic-angular 3.6.1

System:

    Android SDK Tools : 25.2.5
    ios-deploy        : 1.9.1
    ios-sim           : 5.1.0
    Node              : v6.11.0
    npm               : 5.3.0
    OS                : macOS Sierra
    Xcode             : Xcode 9.0 Build version 9A235

Huh, that is strange.

Is there a difference in the URLs the both versions request? You can’t debug the --release build, so you will have to use a proxy like Charles Proxy to find out what URLs are being requested.

I found source of problem.

Primary bug was:
“You have included the Google Maps API multiple times on this page. This may cause unexpected errors.”

when i fixed it, didn’t noticed maps appearance because each time when started --release build, it autodeployed from Ionic PRO old harmed build.

I pushed fixed source and now all works best. But during all this manipulations noticed next issue:

Have pushed to channel build with status “Build Failed”, this status not allow push again, tells up-to-date, so have to make fake changes to try again, and sure, same code was deployed to master. And from master i deployed it to production.

Next ussue the toast which appear after manual deploy at dashboard, i deployed to master, but toast tells, deployed to “production” : “Snapshot (commit 025ae2) successfully deployed to channel Production”

Ionic Pro is a hosted and closed source service, so there is not much we, the community, can help you with.
There is a FAQ and common/known issues at https://ionic.zendesk.com/hc/en-us/sections/115003254647-FAQ-Common-Issues
Official documentation is at https://ionic.zendesk.com/hc/en-us and https://ionicframework.com/docs/pro/
You can - and should - contact support at http://ionicframework.com/support#support