AIR/Flex Push-notification example not responding

Hi

All the latest backendless examples in the SDK for Flex/AIR are working really well! Great work!

However, after setting the example backendless-push-notification correctly with appSettings; GCMSenderId, Goole API key and backendless secret keys.

I found the backendless-push-notification does not return anything. Not event a fault event.

Currently using Apache Flex 4.12/AIR4 and deploying to both iOS and Android. All the other examples are working great.

Any ideas? Is the backendless push-notification service working with the flex/Air SDK ok at the moment?

Thanks
Jasen M.

Hi

This has been marked as a know issue. Any timeframe on when might be up and running again? Be good to know if I should consider an alternative for the short term?

Thanks
Jasen M.

Hi I was wondering if there is an update to this issue?

Currently android devices are registering fine (thanks!), but ios devices are not, not fault event (see above) but they can send Notification messages (viewed in the console) without needing registration…so I assume(?!) my uploaded certificate and ANE IS working ok?

Here is the entitlement configured, nothing special here:

IOS_AIR-App.xml:

Here is some baseline code (straight from the sdk examples) which demos the registration process…

deliveryOptions = new DeliveryOptions();
deliveryOptions.pushBroadcast = DeliveryOptions.ALL;

deviceRegistration = new DeviceRegistration();

deviceRegistration.gcmSenderId = AppSettings.SENDER_ID;//ignored by iOS, only for Android
deviceRegistration.channels = [ “default” ];

Backendless.Messaging.registerDevice(deviceRegistration, receivedPushNotificationFunction,
new mx.rpc.Responder( function(result:ResultEvent):void
{
trace(“device Reg ok”);

}, function onFault(event:FaultEvent){
trace(“device Reg fault”);

}
));



	Is there anything else I should know to register iOS devices for push notification?

Thanks
Jasen M.

Hi Jasen,

please provide me your application id

Hi Jasen,

Your Backendless backend needs to be configured with a .p12 certificate and a password so we can delivery push notifications to the registered iOS devices. You can find the instructions here:

http://backendless.com/documentation/messaging/ios/messaging_push_notification_setup_ios.htm

Also, just to confirm, when you register an iOS device, do you see it in Backendless console? It should show up in the Messaging section > Devices tab.

Regards,
Mark

[reply user_id=22][h4]Sergey Kukurudzyak wrote:[/h4]Hi Jasen,

please provide me your application id[/reply][reply user_id=22]Sergey: Here is my APP_ID:

FFB35772-BDF7-F59E-FFDD-0FA0D0E4F700

Re: Certificate upload:

Yes, I have created an iOS Push Notification Certificate using the process outlined here: http://backendless.com/documentation/messaging/ios/messaging_push_notification_setup_ios.htm

Re: Console IOS Device registration.

No, it does not show under devices. (However, my Android device does register successfully using the same app code)

Its interesting, the device registration code (above) does not return any faults to say it has not registered.

Thanks Sergey/Mark[/reply]

Hi, is there an update to this issue. I have not tried again since posting. However, I have confirmed my ios APN certificate is working correctly using Urbanairship.

Thanks

Hi Jasen,

I am looking into it right now.

Regards,
Mark

Hi thanks for looking into this issue, currently the example project has this issue…which are surely part of the problem?:slight_smile:

The BackendlessPN.ANE (flash builder 4.7) tells me the two different conflicting compatibility results in the Native Extensions panel:

http://i.imgur.com/Yh4em9s.png</img>

Also, when I run/debug the Backendless-push-notification example debug says it does load:

[SWF] com.backendless.BackendlessPN - 7,228 bytes after decompression and backlendless api does not complain.

I have also updated the Main-app.xml to include:

&lt;iPhone&gt;
    &lt;InfoAdditions&gt;<![CDATA[
        &lt;key&gt;UIDeviceFamily&lt;/key&gt;
        <array>
            &lt;string&gt;1&lt;/string&gt;
            &lt;string&gt;2&lt;/string&gt;
        </array>
    ]]>&lt;/InfoAdditions&gt;
    
    &lt;Entitlements&gt;
        <![CDATA[
            &lt;key&gt;get-task-allow&lt;/key&gt;
            &lt;true/&gt;
            &lt;key&gt;aps-environment&lt;/key&gt;
            &lt;string&gt;development&lt;/string&gt;
            &lt;key&gt;application-identifier&lt;/key&gt;
            &lt;string&gt;KRE46QWJ5H.dci.poke.tablet&lt;/string&gt;
            &lt;key&gt;keychain-access-groups&lt;/key&gt;
            <array>
                &lt;string&gt;KRE46QWJ5H.*&lt;/string&gt;
            </array>
        ]]>
    &lt;/Entitlements&gt; 
    
    
    &lt;requestedDisplayResolution&gt;high&lt;/requestedDisplayResolution&gt;
&lt;/iPhone&gt;


&lt;extensions&gt;
    &lt;extensionID&gt;com.backendless.BackendlessPN&lt;/extensionID&gt;
&lt;/extensions&gt;

Thanks

I have added this to the Main-app.xml file for the project. These are the same options I use to have Urbanairship pushes to working correctly:

&lt;iPhone&gt;
&lt;InfoAdditions&gt;<! [ CDATA [
&lt;key&gt;UIDeviceFamily&lt;/key&gt;
<array>
&lt;string&gt;1&lt;/string&gt;
&lt;string&gt;2&lt;/string&gt;
</array>
]]>&lt;/InfoAdditions&gt;


&lt;Entitlements&gt;
<! [ CDATA[
&lt;key&gt;get-task-allow&lt;/key&gt;
&lt;true/&gt;
&lt;key&gt;aps-environment&lt;/key&gt;
&lt;string&gt;development&lt;/string&gt;
&lt;key&gt;application-identifier&lt;/key&gt;
&lt;string&gt;KRE46xxxx.dci.xxxx.tablet&lt;/string&gt;
&lt;key&gt;keychain-access-groups&lt;/key&gt;
<array>
&lt;string&gt;KRE46Qxxxx.*&lt;/string&gt;
</array>
]]>
&lt;/Entitlements&gt; 




&lt;requestedDisplayResolution&gt;high&lt;/requestedDisplayResolution&gt;
&lt;/iPhone&gt;




&lt;extensions&gt;
&lt;extensionID&gt;com.backendless.BackendlessPN&lt;/extensionID&gt;
&lt;/extensions&gt;

Can you see anything wrong with this?

It seems adding xml code snippets in the posts are not working for me either. lol