Skip to content
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

Push notification in iOS not working using IONIC 2 cordova phonegap push plugin #11746

Closed
Gurjit-ONEBCG opened this issue May 22, 2017 · 2 comments

Comments

@Gurjit-ONEBCG
Copy link

Gurjit-ONEBCG commented May 22, 2017

Ionic version:
2.23

Cordova version
7.0.1

I'm submitting an issue which is related to IONIC PUSH NOTIFICATION using cordova phonegap plugin

Current behavior:
In android working fine eg. getting push notification. But in iOS do not get the notification, but in alert I see the generated token.

Expected behavior:
iOS devices should get the notification as well

Related code:

export class MyApp {
  rootPage = HomePage;
 
  constructor(platform: Platform, public push: Push) {
    platform.ready().then(() => {
      StatusBar.styleDefault();
      Splashscreen.hide();
 
      this.push.register().then((t: PushToken) => {
        return this.push.saveToken(t);
      }).then((t: PushToken) => {
       alert('Token saved:'+t.token);
      });
 
      this.push.rx.notification()
      .subscribe((msg) => {
        console.log('I received awesome push: ' + msg);
      });
    });
  }
}

Other information:
I believe I have properly created security certificates which I have uploaded to app.ionic profiles
and all other steps followed very carefully.

@jgw96
Copy link
Contributor

jgw96 commented May 22, 2017

This issue was moved to ionic-team/legacy-ionic-cloud#212

@jgw96 jgw96 closed this as completed May 22, 2017
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 2, 2018

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 Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants