0 Favourites

[Plugin] Cordova Push Notifications with OneSignal service

  • Version: 1.4

    Español:

    Con este plugin para Construct 2 podrás integrar las notificaciones Push del servicio One Signal en tu app híbrida de Cordova.

    One Signal es un servicio gratuito que nos permite gestionar y personalizar nuestras notificaciones en su web, además de incorporar funcionalidades muy útiles como el seguimiento por usuarios.

    Al registrarnos en la web podremos acceder a diversos tutoriales para configurar el servicio a nuestra aplicación: https://onesignal.com/

    Funciona en Android, Ios, Windows Phone 8.1 y Amazon FireOS.

    Plugins de Cordova requeridos:

    onesignal-cordova-plugin-pgb-compat: https://github.com/one-signal/OneSignal-Cordova-SDK.git#PGB-Compat

    custom dependencies: https://github.com/OneSignal/OneSignal-Cordova-Dependencies-Compat

    English:

    With this plugin for Construct 2, you can install and use Push notifications through the OneSignal's free service. You can configure and create your own notifications for your hybrid cordova apps with a lot of amazing and useful features.

    Sign up to use the service and see some installation tutorials: https://onesignal.com/

    Works in Android, Ios, Windows Phone 8.1 and Amazon FireOS.

    Required Cordova plugins:

    onesignal-cordova-plugin-pgb-compat: https://github.com/one-signal/OneSignal-Cordova-SDK.git#PGB-Compat

    custom dependencies: https://github.com/OneSignal/OneSignal-Cordova-Dependencies-Compat

    Demo video:

    https://youtu.be/Up-BaNwR9iQ

    Example .capx:

    http://www.mediafire.com/file/y1qi81k23 ... k5494.capx

    Propiedades / Properties

    Acciones / Actions

    Condiciones / Conditions

    Expresiones / Expressions

    Buy the plugin for 4$ (cheapest option) in my blog: http://hermitsdevelopment.blogspot.com.es/2016/06/construct-2-plugin-cordova-push.html

    Now in Scirra Store too!

    https://www.scirra.com/store/construct2-plugins/cordova-push-notifications-2627

  • Hi..

    So does this only work in Android with crosswalk ?

  • Hi..

    So does this only work in Android with crosswalk ?

    No! Android, Ios, Windows Phone 8.1 and Amazon Fire

  • Is it working with Cocoon IO?

    Thanks!

  • Is it working with Cocoon IO?

    Thanks!

    Unfortunately no One Signal doesn't have any sdk to Cocoon IO

  • After searching everywhere and trying different plugins for PUSH NOTIFICATION, I FINALLY found this one. I was a little skeptical since none of the others I had tred worked out, but I went ahead and bought it and I am thrilled to say it works exactly as I need it to. So very happy I finally found something that works. A life saver.

  • After searching everywhere and trying different plugins for PUSH NOTIFICATION, I FINALLY found this one. I was a little skeptical since none of the others I had tred worked out, but I went ahead and bought it and I am thrilled to say it works exactly as I need it to. So very happy I finally found something that works. A life saver.

    Thanks for your purchase and your comment. Your feedback is very appreciated!

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Bump! New price and demo video soon.

  • Hi, just got your plugin. Hoping it does the trick.

    I added the google play services to intel xdk. They changed the name to com.google.playservices from cordova-google-play-services.

    Hope that helps.

    Cheers,

    hgm

  • Hi, just got your plugin. Hoping it does the trick.

    I added the google play services to intel xdk. They changed the name to com.google.playservices from cordova-google-play-services.

    Hope that helps.

    Cheers,

    hgm

    Thanks man! Your purchase is so appreciated. And yes, that's correct, new google play services package is cordova-google-play-services, according to cordova plugin registry update.

  • I've just completed the installation and it worked for Android via intel xdk. Great to see it working properly, nice job!

    Could you make a sample capx file showing the plugin in action? That would be helpful.

    Also, regarding the 'tags' feature, the website says pushes with 'tags' require the REST api key with the request. Then it also warns about having the api key stored on the client device. Is there a workaround for this?

    Thanks

  • I've just completed the installation and it worked for Android via intel xdk. Great to see it working properly, nice job!

    Could you make a sample capx file showing the plugin in action? That would be helpful.

    Also, regarding the 'tags' feature, the website says pushes with 'tags' require the REST api key with the request. Then it also warns about having the api key stored on the client device. Is there a workaround for this?

    Thanks

    Thanks for your feedback, glad to read all works fine.

    What kind of examples do you wanna see in the capx file?

    What do you mean with the rest api key? The one you insert in the plugin properties? Or the unique one the device has to make push by itself?

  • What kind of examples do you wanna see in the capx file?

    What do you mean with the rest api key? The one you insert in the plugin properties? Or the unique one the device has to make push by itself?

    The plugin properties uses the app id provided by OneSignal. They also provide an api key, which they recommend be stored and used on a server instead of an app user's device. In the app, I can add tags to a user through your plugin, but if I want to send out a push from a client's device to target other users based on their tags, that request needs to include the api key on top of the app id.

    Maybe the api key can be added to the plugin properties like the app id and google project # in a safe way?

    As for the example capx, maybe something simple that shows how the conditions/actions/expressions are used in context of a simple app that relies on notifications. See rex's plugins and their examples for inspiration...

  • >

    >

    > What kind of examples do you wanna see in the capx file?

    >

    > What do you mean with the rest api key? The one you insert in the plugin properties? Or the unique one the device has to make push by itself?

    >

    The plugin properties uses the app id provided by OneSignal. They also provide an api key, which they recommend be stored and used on a server instead of an app user's device. In the app, I can add tags to a user through your plugin, but if I want to send out a push from a client's device to target other users based on their tags, that request needs to include the api key on top of the app id.

    Maybe the api key can be added to the plugin properties like the app id and google project # in a safe way?

    As for the example capx, maybe something simple that shows how the conditions/actions/expressions are used in context of a simple app that relies on notifications. See rex's plugins and their examples for inspiration...

    I think you mean the app key you can retrieve with GETID expression, which is unique for each device and neccesary to make push. You can retrieve the device id with the expression everytime you want, the plugin get it from one signal server every time the app opens and it is stored like a property inside the code safely i think.

    Sorry if i don't understand you properly, my english is not that good

  • Here's where I read about it, starting in the "Documentation" section in this link:

    https://documentation.onesignal.com/v2. ... tification

    The rest API key when logged in is here:

    App Settings > Keys & ID's.

    Hope that helps.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
1,068 148,696
Reflextions's avatar
Reflextions
Unread hot topic
0 Favourites
[plugin] firebase
687 65,169
cybertron7's avatar
cybertron7
Unread hot topic
0 Favourites
[PLUGIN] Canvas
627 186,715
zenox98's avatar
zenox98