Passing Parse Notification data to IONIC app

Is there any way of passing notification data from a Parse notification to ionic (cordova/phonegap) app?

You mean receive a Parse.com notification on your Application ?? Yeah! Ionic and phonegap use javascript!

  • Sign up at Parse.com
  • Create an Application at Parse.com
  • Copy one JavaScript file
  • Copy Application and JavaScript keys
  • Write code

Initialize your Parse application:

Parse.initialize("app ID", "js ID");

After that you should get Parse using its javascript library.

Hope it could be useful =)

If you're using a hybrid style

You should have parsed the notification in your native part so that you can generate an NSString object as the target url.

So you can just use - (void)loadRequest:(NSURLRequest *)request in UIWebView to open it.

If you're using the ionic way

Then you are using ui-route to do the route thing.

So you can use $state.go("your.state", {}, { location: false } ); to change the page.

See this answer to have detail explain.