mapsplugin / cordova-plugin-googlemaps

Google Maps plugin for Cordova
Apache License 2.0
1.66k stars 916 forks source link

When use navcontroll push undermap info click event, push working fine but the other page backbutton not working #2347

Closed biswajitExicube closed 6 years ago

biswajitExicube commented 6 years ago

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)

insert the output from the command here

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

Current behavior:

Expected behavior:

Screen capture or video record:

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

The person who share your project files on Github (or other git repository) is in faster lane than other people.
Please share your project files on Github or others(Bitbucket, Gitlabs...etc).
If you don't want to share your project files, please create a demo project, then share it.

Screen captures, and/or native logs(such as Logcat, xcode logs) are appreciate.

Giving much information, you are waiting time is less.
Thank you for your cooperation.
wf9a5m75 commented 6 years ago

Please share your project files on GitHub

wf9a5m75 commented 6 years ago

ping

biswajitExicube commented 6 years ago

I am doing ionic 2 project.and using the multiple maps branch of cordova google maps plugin. This is my package.json

{
  "name": "XXX",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@agm/core": "^1.0.0-beta.2",
    "@angular-redux/form": "^6.7.0",
    "@angular-redux/store": "6.6.0",
    "@angular/animations": "5.2.9",
    "@angular/common": "5.2.9",
    "@angular/compiler": "5.2.9",
    "@angular/compiler-cli": "5.2.9",
    "@angular/core": "5.2.9",
    "@angular/forms": "5.2.9",
    "@angular/http": "5.2.9",
    "@angular/platform-browser": "5.2.9",
    "@angular/platform-browser-dynamic": "5.2.9",
    "@ionic-native/core": "4.6.0",
    "@ionic-native/google-maps": "^4.7.0",
    "@ionic-native/launch-navigator": "^4.9.0",
    "@ionic-native/native-page-transitions": "^4.7.0",
    "@ionic-native/splash-screen": "4.6.0",
    "@ionic-native/status-bar": "4.6.0",
    "@ionic/pro": "1.0.20",
    "@ionic/storage": "2.1.3",
    "@ngx-translate/core": "^9.0.2",
    "@ngx-translate/http-loader": "^2.0.1",
    "@types/redux-persist": "^4.3.1",
    "com.telerik.plugins.nativepagetransitions": "~0.6.5",
    "cordova-android": "^6.3.0",
    "cordova-ios": "4.5.4",
    "cordova-plugin-actionsheet": "^2.3.3",
    "cordova-plugin-backbutton": "^0.3.0",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-dialogs": "^2.0.1",
    "cordova-plugin-googlemaps": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps.git#multiple_maps",
    "cordova-plugin-ionic-keyboard": "^2.0.5",
    "cordova-plugin-ionic-webview": "^1.2.1",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "ionic-angular": "3.9.2",
    "ionicons": "3.0.0",
    "ramda": "^0.25.0",
    "redux": "3.5.0",
    "redux-logger": "3.0.6",
    "redux-observable": "0.18.0",
    "redux-persist": "^5.9.1",
    "rxjs": "5.5.8",
    "sw-toolbox": "3.6.0",
    "uk.co.workingedge.phonegap.plugin.launchnavigator": "^4.2.0",
    "zone.js": "0.8.20"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.8",
    "ionic": "3.20.0",
    "typescript": "~2.6.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-googlemaps": {
        "API_KEY_FOR_ANDROID": "...",
        "API_KEY_FOR_IOS": "...."
      },
      "uk.co.workingedge.phonegap.plugin.launchnavigator": {
        "LOCATION_USAGE_DESCRIPTION": "This app requires access to your location for navigation purposes"
      },
      "cordova-plugin-backbutton": {},
      "com.telerik.plugins.nativepagetransitions": {},
      "cordova-plugin-ionic-webview": {}
    },
    "platforms": [
      "android",
      "ios"
    ]
  }
}

I am trying to do navigate or push to a new details page on info click of map. and its happening.But In details page html back button is not working on ios and android.But android hardware back button is working. But navigation through others page to details page is perfectly working. I could not locate why this is happennig for only map page to details page

this is my map page code.

//marker info click
            marker.addEventListener(GoogleMapsEvent.INFO_CLICK)
            .subscribe((data:any[]) => {
              this.markerLat = (data[0].lat).toFixed(6);
              this.markerLng = (data[0].lng).toFixed(6);
              this.rec = this.markerdata.filter(v=> ((v.LocationX).toFixed(6)+','+(v.LocationY).toFixed(6))==(this.markerLat+','+this.markerLng));
              this.markerName = this.rec[0].Title;
              this.markerState = this.rec[0].Address;
              this.markerLat = this.rec[0].LocationX;
              this.markerLng = this.rec[0].LocationY;
              this.gotoDetails()
              }
          );
gotoDetails(){
     this.navCtrl.push(DetailsPage,{station:this.rec[0],language:this.lang,fields:this.fields});
  }

Please Help.Thank you

wf9a5m75 commented 6 years ago

I said Please share your project files on GitHub, not asking to paste your code here

wf9a5m75 commented 6 years ago

ping

wf9a5m75 commented 6 years ago

ping

wf9a5m75 commented 6 years ago

Since there is no response, I close this thread