Open davorpeic opened 7 years ago
Ok, I managed to get this working, I created few methods with promises that I need in this project, I will create a Gist tomorrow so others can follow this example if they need this implemented in Angular
@davorpeic Any update?
Hey, I started but didn't finished, let me see if I can upload gist today, thanks
Hey @tushar-1health I put in this gist service that I use to get IDs and to save tags, these are all methods that I use at this moment besides registering device. I'm sure it can be improved.
Please try and let me know how it goes https://gist.github.com/davorpeic/93605ccf42702e7b932c61b6bd6bcc46
@davorpeic your example will only work on iOS. please refer to this https://github.com/roblav96/nativescript-onesignal/issues/5#issuecomment-284811981
Thanks @roblav96 yeah, I just saw your example, thanks!
@davorpeic @roblav96
Hey, Have you configured receivedCallback
/ actionCallback
? I was unable to redirect when a button is clicked on notification. Hoping you can help here.
Hey @tusharvikky I recommend everybody to switch to Firebase Messaging, it's also free and works great with Eddy's https://github.com/EddyVerbruggen/nativescript-plugin-firebase, I had to modify a little bit my NS app code, and my laravel server side was already using curl post, so I almost only replaced url and it kept working the same with firebase fcm. The firebase plugin is maintained and it is working fine, much better than this plugin.
Hi,
anybody managed to get this working on Nativescript 2.5 + Angular app?
My main.ts looks like this
And this is what I get when I try to build
I tried to remove/add platform ios and this is without typings defined in references, if I add them then I get lots of android typings errors.
thanks