Software Archive
Read-only legacy content

Push Notification Windows Phone Microsoft

Fabian_S_
Beginner
354 Views

Hi,

 

Our application works with OneSignal for push notifications.
Android works perfectly well.
But it's not working with Windows Phone.
When you open the application with a WP8.1 phone, the registration with OneSignal does well, but next when you try to send a push message, it does't reach the phone.

Onesignal.com technical support advised me to consult with you and sent me this message:
*********************************************
We received a "Blocked URL channel" response from Microsoft for this device.
x-WNS-status ":" dropped "
x-WNS-deviceconnectionstatus: "connected"
x-WNS-msg-id: "6E40271477CA5687"
x-WNS-Error-description: "Blocked URL channel"
x-WNS-debug-trace "BN3SCH030010717"
It looks like this Means That the app does not have "Toast Capable" set.
I recommend you ask Intel to confirm the following will enable this for Their Intel XDK.
<Preference name = "WindowsToastCapable" value = "true" />
*********************************************

I added the line <preference name = "WindowsToastCapable" value = "true" /> at the end of the file intelxdk.config.additions.xml but next, I didn't receive the Push message for the windows phone.

I appreciate your help

0 Kudos
6 Replies
Pamela_H_Intel
Moderator
354 Views

Fabian,

Which plugin are you using for push notifications? Did you check its readme to see if it works for Windows Phone?

Pamela

(Thank you for creating separate threads for different issues!)

0 Kudos
Fabian_S_
Beginner
354 Views

Hi Pamela,

 

The plugin is right and works for Windows Phone, iOS and Android.
The company OneSignal suggests to install the plugin for proper operation:
https://documentation.onesignal.com/docs/phonegap-sdk-installation

The plugin is as follows:
https://github.com/one-signal/OneSignal-Cordova-SDK.git#PGB-Compat

This plugin works perfectly with Android. But for some reason you are not getting push notifications for Windows Phone.

The support of the company OneSignal asked me to consult with you

 

Thank you

0 Kudos
PaulF_IntelCorp
Employee
354 Views

Based on my research for that preference (<preference name = "WindowsToastCapable" value = "true" />) it may be that it only works with the "windows" target and not the "windows8" target.

Are you able to try this experiment using a Windows 10 device and the Windows UAP build?

For reference:

 

0 Kudos
Fabian_S_
Beginner
354 Views

Hi Paul,

 

My device for testing is Windows Phone 8.1.

I added this line: <preference name="windows-target-version" value="8.1" /> and <preference name="WindowsToastCapable" value="true" /> into the file intelxdk.config.additions.xml

I build on Windows Phone 8.1

next I installed the app into my WP8.1

but the same thing happened again. The registration functioned, but when I sent a push notification the phone didn't receive it.
And next the device is unsubscribed on OneSignal

I do not know what else to do...

0 Kudos
Pamela_H_Intel
Moderator
354 Views

Fabian,

Is your host machine Windows8? If so, you can test on that.

Pamela

0 Kudos
Fabian_S_
Beginner
354 Views

Thank you everyone for your help. 

Finally the problem has been resolved, in part, because of the links and help you have given me.

I only needed to enter thess lines on the bottom of the file intelxdk.config.additions.xml

<preference name="windows-target-version" value="8.1" /> 
<preference name="WindowsToastCapable" value="true" />

 

Regards

0 Kudos
Reply