PushPlugin and AppBuilder

8 posts, 0 answers
  1. Darren
    Darren avatar
    32 posts
    Member since:
    Sep 2013

    Posted 16 Jun 2014 Link to this post

    Hi

    I am successfully using the pushplugin inbuilt into AppBuilder. It is functioning well on Android and iOS except for one thing. I can't send a notification to iOS that contains a linebreak/newline (ie. my notification is built in a standard textarea - so typing 'Line 1' then hit return (newline) and typing 'Line 2') will not get to the 'onNotificationAPN' in the push plugin. It works fine for Android. All other notification send to ios work. So currently I strip the newline (\n) from textarea before send and it works ok.

    Can you test this and see if it happens with your default sample app?

    I assume it is a PushPlugin bug. So here is my question. Can I not include the inbuilt PushPlugin in AppBuilder Properties Page and import at latest PushPlugin from phonegap.
    As the pushPlugin is not current and I am hoping there is a fix in later versions.

    Will pushplugin be upgraded in next release? Will next release contain Cordova 3.5?
    When is next release for AppBuilder?
    Many thanks Darren


  2. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 19 Jun 2014 Link to this post

    Hi Darren,

    Thank you for contacting.

    This appears to be a common issue, related to the PushPlugin. It has also been reported among the PhoneGap community. Unfortunately, it stays unresolved.

    Nevertheless, we will explicitly test that behavior on our side and will get back to you with the results and the possible solutions or workarounds. Here, it will be helpful for us to know if you are using our Backend Services or another third party service for sending the push notifications.

    Further, about your questions:
    "Can I not include the inbuilt PushPlugin in AppBuilder Properties Page and import at latest PushPlugin from phonegap."

    Yes, this is possible. To do it, you will need to first disable the integrated plugin from the project properties and then import/add its latest version inside the project.

    "Will pushplugin be upgraded in next release?"

    Not in the one planned for the end of June. However, it is very likely such update to occur a bit later in the future.

    "Will next release contain Cordova 3.5?"

    Yes. We are now extensively testing the Cordova 3.5 integration and plan to release it by the end of this month.

    "When is next release for AppBuilder?"

    As said above, the next AppBuilder release should happen by the end of June.

    I hope this helps. I am looking forward to your reply.

    Regards,
    Kaloyan
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  3. Darren
    Darren avatar
    32 posts
    Member since:
    Sep 2013

    Posted 20 Jun 2014 in reply to Kaloyan Link to this post

    Thanks Kaloyan for replying 

    I am using the Parse.com backend for push to ios and android.

    I currently use the following to strip the newline from the message before sending and it works fine.
    message = message.replace(/(\r\n|\n|\r)/gm," ");

    Even using Parse's dashboard to send ios message with newline characters - it fails to call the push plugins onnotificationAPN function.


  4. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 24 Jun 2014 Link to this post

    Hi Darren,

    I found something that could help. In this article, there is a solution to similar (if not the same) issue. Please, check if it will solve the matter on your side.

    I hope it helps. Please, let me know of the results, so I can also update the forum post.

    Regards,
    Kaloyan
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  5. Darren
    Darren avatar
    32 posts
    Member since:
    Sep 2013

    Posted 25 Jun 2014 in reply to Kaloyan Link to this post

    Hi Kaloyan

    Thanks for the article. I already defined my notification handler 'globally' and they are not the problem. They are found and called successfully if the message doesn't contain newline chars.
    Also for interest the notification handlers can be defined on the 'app' variable like in the cordova sample apps. Or even work when defined on the 'app. variable in and Angular app if the app is defined as 'ng-app=app'.

    Thanks - this does appear to be a PushPlugin bug. I note that the PushPlugin hasn't been worked on for awhile. How do we prompt the contributors behind it to respond.

    thanks Darren
  6. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 30 Jun 2014 Link to this post

    Hi Darren,

    The only way I can think of is to write an issue in the Git repository. Further, you can check the opened issues, like this one, as you might find a solution there.

    We will also keep an eye on this, in order to to integrate the fix on our side as soon as it is released.

    I hope this helps.

    Regards,
    Kaloyan
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  7. Darren
    Darren avatar
    32 posts
    Member since:
    Sep 2013

    Posted 30 Jun 2014 in reply to Kaloyan Link to this post

    Thanks again Kaloyan

    I will keep an eye on the PushPlugin issues. If anything fixes the issue I will let you know.
    For now I'm happy enough with my fix/workaround - new line is not that important but would be nice.

    Thanks
    Darren
  8. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 02 Jul 2014 Link to this post

    Hi Darren,

    I am glad to hear this.

    I will make sure to also update you if there is anything further about the issue.

    Thank you for all the help and collaboration.

    Regards,
    Kaloyan
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
Back to Top