Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Nacho_M_
Beginner
81 Views

Intel XDK Push Notifications Help!

Hi, I'm trying to add Push Notifications to my Cordova Hybrid App using Iten XDK but I'm so lost and I need some help... 

I was reading a tutorial which uses GCM from google for the notifications, but after paying the developer fee I noticed that they changed that to Firebase Cloud Messaging rendering the tutorial useless because the plugin the tutorial used is also deprecated.

Also there are a lot of third party plugins and I don't know which one to choose, the Intel XDK plugins say something about how to modify a gradle version of the plugin but I don't understand much about it.

Does anybody know a good updated tutorial about this?, my goal is to be able to send push notifications to Android and IOS from the server, so keeping that in mind does anybody know something?

Greetings

Tags (2)
0 Kudos
10 Replies
PaulF_IntelCorp
Employee
81 Views

The XDK creates standard Cordova apps (with some limitations in the build system, such as the gradle limitation you read about). Search for a Cordova or PhoneGap example that does what you want and you can apply that sample in the XDK.

Nacho_M_
Beginner
81 Views

But if I find a Cordova/Phonegap example that uses gradle scripts I wont be able to apply that sample on Intel XDK or I'll work without a problem

 

PaulF_IntelCorp
Employee
81 Views

It can be used only if this FAQ applies > https://software.intel.com/en-us/xdk/faqs/cordova#push-plugin-fix < otherwise, it cannot be used with our build system.

Abdulla_K_
Beginner
81 Views

@Nacho M. Could  u fix your issue? am also facing same issue.

Paul F. (Intel) : Is there any way to do the push notification in intel XDK? There is no plugins without gradle script and https://software.intel.com/en-us/xdk/faqs/cordova#push-plugin-fix This is not working.

 

Nacho_M_
Beginner
81 Views

@Abdulla K. Yes! I fixed it, I just created the same project without Intel XDK only Cordova, and it was the best thing I could've done, so much control over my App that I don't regret it, even if you want to optimize your App there are some limitations within Intel XDK so I highly recommend using just Cordova 

PaulF_IntelCorp
Employee
81 Views

Abdulla K. wrote:

Paul F. (Intel) : Is there any way to do the push notification in intel XDK? There is no plugins without gradle script and https://software.intel.com/en-us/xdk/faqs/cordova#push-plugin-fix This is not working.

You cannot use plugins that require custom gradle scripts, this is a limitation of most online build systems, due to the security risks associated with those scripts. PhoneGap Build also has this restriction. As Nacho M. pointed out, you can use Cordova CLI to build your app. 

If you have an existing XDK project, you can export it for use with Cordova CLI, using the "Cordova Build Package" tool on the Build tab. See this doc page > https://software.intel.com/en-us/xdk/docs/build-xdk-app-with-phonegap-cordova-cli < for help with that export and for some instructions explaining how to get started installing Cordova CLI on your system.

NOTE: the Intel XDK build system will be retired very soon; please see the release notes for details > https://software.intel.com/en-us/xdk/docs/release-notes-information-intel-xdk <

David_B_23
Beginner
81 Views

Unfortunately the link https://software.intel.com/en-us/xdk/faqs/cordova#push-plugin-fix does not go to an article at this time. Looking at search results, Intel seem to have re-structured their FAQ database and now use numeric references, but they do not re-direct from the old links.

Regrettably, when I search for push plugin fix, I seem to be directed to the same broken link as above.

If anyone has a proper working solution to adding, for instance, cordova-plugin-firebase to an XDK project that does not reference broken links I'm sure this would be appreciated by the community.

 

PaulF_IntelCorp
Employee
81 Views

David B. wrote:

Unfortunately the link https://software.intel.com/en-us/xdk/faqs/cordova#push-plugin-fix does not go to an article at this time. Looking at search results, Intel seem to have re-structured their FAQ database and now use numeric references, but they do not re-direct from the old links.

Regrettably, when I search for push plugin fix, I seem to be directed to the same broken link as above.

If anyone has a proper working solution to adding, for instance, cordova-plugin-firebase to an XDK project that does not reference broken links I'm sure this would be appreciated by the community.

I'll see if I can find out what happened to those pages.

BTW -- the FAQ you are searching for is no longer relevant because it pertained to using push-plugins with our now retired build system. But that problem is also one for PhoneGap Build. Many push plugins require that you build with Cordova CLI, not with a cloud-based system.

PaulF_IntelCorp
Employee
81 Views

@David B. -- the FAQ pages were inadvertently deleted as part of some larger web-site cleanup activities. I'm expecting them to be restored shortly.

PaulF_IntelCorp
Employee
81 Views

@David B. -- the FAQ pages have been restored.

Reply