Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ionic,OneSignal-Open the launchURL with in the app

$
0
0

@Akhilreddyyalla wrote:

I am sending a URL has parameter along with push notification.when clicked on notification,the link gets opened inside the mobile browser.I want the link to be opened within the mobile application.For that i used the following code in ionicPlatform ready as stated in documentation,

window.plugins.OneSignal
.startInit(“APP_ID”)
.handleNotificationOpened(function(jsonData) {
alert(“Notification opened:\n” + JSON.stringify(jsonData));
console.log('didOpenRemoteNotificationCallBack: ’ + JSON.stringify(jsonData));
})
.endInit();

Then in the console,it displays an error as window.plugins.OneSignal.startInit is not a function. can someone help me out where i am going wrong,Thank you!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>