Push notifications

When we have a little push - enabled, application and we send a helping hand from our server, we need both the token and the device id?  Cause on the server of the sample (low level sample), it seems that it required an id (what is that?) and an address (device id).  I get something wrong here, or I really need both to make it work?

Also where exactly is the token? I do not see anywhere... The only thing I've seen since the sample server is that I need the device id and BOOM, I have a new message on the device. What is the id push? It seems that it can be everything I love. But where's the token? We do not have a token in the development of BB?

Thank you very much.

Fix.  In our Push Service SDK, we use a domain name + '-' + <5 random="" characters="">+ '-' + in our generation of push ID.

Note that your push ID cannot exceed 40 characters.

Tags: BlackBerry Developers

Similar Questions

  • Apple Push Notification Service production

    I have two applications (just built) that send notifications to and from a web server remotely: everything works fine until yesterday, expiration date of Apple's Push Notifications. I create new certificates (from original CSR files), create a .pem file and download it into my production server, replace the older ones, but when I tested the downloaded Apps from the App Store has not received notifications (in the mode of development that all notifications have arrived properly).

    can someone help me please?

    .. the certificate on my developer account is active (a green dot on the side of Pentecost) and not expired!

    Help

  • Moto G4 - push notifications to stop functioning when the phone is idle / inactive

    Hello!

    I have a very annoying problem with my G4 bike purchased in the UK.

    Problem:

    My push notification comes to app and gmail to stop working when the phone is idle / inactive.

    When I use any application or when I put just the phone side push notifications work fine. They appear on the lock screen and beep.

    After a few minutes of not using the phone, the message to stop the spread. The sender indicates that a tick and the Moto G4 does not show notifications of type push until the phone is activated and unlocked. It is very annoying, because I already missed several attempts to call. This problem occurs with the Wifi or data plan. It is not a What'sApp of settings as it works very well for a while.

    Text messages and phone calls work well, just a data plan seems to go off when idling and never come back until unlocked (even then it takes a while). WiFi seems somehow to maintain a connection.

    I tried:

    • change What settings the sApp
    • disconnection/connection gmail account
    • remove the operating system of the device cache
    • disable the whats of ap battery saving options and all services appear to be relevant
    • WiFi seems somehow to keep the phone, but only data stops immediately, sending fn when idle
    • Restart in safe mode-> the same problem with meeting places. WiFi seems to work, data plan do not when idling

    Is this a known issue? Everyone knows the problem? To me, it seems that the camera seems to move from the internet and do not reactivate until this that unlocked.

    Any suggestion would be appreciated,

    Thank you!

    It seems to work now after clicking: 'Reset the settings App' in the top menu right in "parameters - apps-> gear-> battery optimization"!

    I haven't seen this solution anywhere else. I did the reset done only because I tried to disable optimization for almost all applications gradually. Without success, I clicked on 'Reset the settings App' and suddenly push notification for all work! Yes!

  • Push notifications don't work properly

    Hello! Ive had a problem with my notifications push on incoming messages in Whats App, Hangouts, messaging applications.
    I get no notification either when z3 is in "sleep" or active. Moreover, I only receive new messages when I open a respective application. Even if I have it running but not active at the moment, I don't get notifications unless I have switxh to the app and check a cat or an Inbox manually. Please help solve the problem.

    In this case, there could be a problem with your APN settings. See the following:

    https://talk.sonymobile.com/T5/Xperia-Z1-Z1s/Sony-Xperia-Z1-push-notifications-problems/m-p/522571#M...

  • Acceleration of approval of push notification service

    I wonder if there's a place I can reach out to the acceleration to the top of my push notification service application. Five days seems a bit long to test the existing integration with my Android build.

    Anyone has any advice to help get things moving?

    I checked with the team to push and all pending requests have been processed.  Then you should be all set.  If you have not received notification, check your spam filter in case the message was taken there.

  • Android.cfg file not created - BB10 Push Notification

    I'm enbaling push notification in my android app BB10 runtime. I'm following this doc to implement the push. I developed the Android using Novell project. I tried different ways to create the file cfg under bar.

    1. Before you create the apk, added the cfg file in the root of the project name of the application (tried naming as android.cfg also).
    2. Using this apk, I generated the .bar file, but Android folder, res folder and apk file do not exist, cfg file is not exist.
    3. Then I tried to add file cfg under bar file after you have created the apk but before signing bar leader, but I started getting the following error:
    Error: No manifest.
    Exception in thread "main" java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at net.rim.tools.signing.SigningMain.main(SigningMain.java:72)
    Caused by: java.lang.Exception: java.lang.RuntimeException: No manifest.
            at net.rim.device.codesigning.barsigner.BarSigner.if(Unknown Source)
            at net.rim.device.codesigning.barsigner.BarSigner.main(Unknown Source)
            ... 5 more
    Caused by: java.lang.RuntimeException: No manifest.
            at net.rim.device.codesigning.barsigner.BarSigner.try(Unknown Source)
            ... 7 more
    

    I see a lot of post where push is activated with success in app Android Runtime BB10. What I'm doing wrong here?

    Hey Subha_Murali,

    Follow the instructions on this page or complie the sample application. It always works for me flawlessly!

  • How to make the push notification as APN (notification of transmission of apple) with Blackberry API

    Hi all

    I want to know how to get push notification as we APN. I found a demo in the code example of RIM named "httppushdemo" with the server and client code.

    It works this way,

    My custom server (java servlet) push a few data for some static ip (on MDS with given port), on my desk and the BB device receive the MDS data, where my blackberry MDS Simulator is on. So in this case I got direct push notification when the application is activated.

    Flow for Simulator is so as:

    Server customized---> MDS (with specific ipadrees / port)<-------------- >

    (do)                                                              (receive the push)

    But my question is that, in the event of a real device, I have MDS to push the text to the specific ip address.  I have MDS in my device itself. So from where custom server I need to push the text?

    Direct to device? if yes then please tell me where I can change my bb device ip address. ?

    Thanks in advance,

    Tejas

    The AFN is similar to the notion of PPG in BlackBarry who is world BES MDS or Service of Push BlackBerry World BIS. Http you post your button to one of the PPG and it routes the message to the device for you.

    Keep in mind when you push user push BIS and BES that push you to the device with address e-mail or a PIN that you can push only per SPINDLE.

  • It has Blackberry support Push Notification (aka Google PN) 10

    Dear supporters,

    We develop game for BB 10, coding only with native code without using a waterfall.

    We want to apply Push Notification service (aka Google PN).

    But I can't find any information guide how to do this.

    I mean PN using native code, not cascase.

    Please help me to confirm that this is supported or not? If have, please give me more details

    Kind regards

    Hello

    We have C push API. Here's the documentation explaining how they can be used:

    https://developer.BlackBerry.com/native/documentation/core/developing_push_enabled_application.html

  • Push notification by using the credentials of the Production

    Using credentials given by BB Push notification team, I send you notification on the device. But get send status SUCCESS and does not notice on BB device (client).

    It worked very well with credential assessment earlier. I am currently train with Production credentials

    Please, help me in this.

    Note: BIS is on my device.

    Thank you

    I had the question. It was matter of time zone. I am in India & is my servier in the United States...

    Now I get the notification.

    Thanks for responding.

  • BlackBerry app Push Notifications using PushWoosh does not receive notifications when closed and in the background

    I'm developing an application of crossed with phonegap and Jquery mobile platform. I'm trying to implement push notifications for the blackberry application using PushWoosh.

    I noticed that I'm not able to receive notifications when the application is in the background, or when it is closed. I get notifications only when the application is in the foreground.

    Any suggestions on this problem?

    I can use all the help.

    The app is a phonegap application Webworks.

    Thank you.

    Info:

    PhoneGap 2.8.0

    jQuery 1.9.1

    jQuery 1.3.1 Mobile

    SDK WebWorks

    PushWoosh

    Hello

    We just push our BB HTML5 / Webworks sample to our github repo:

    https://github.com/shaders/push-notifications-SDK/tree/master/SDK%20Sample%20Projects/BlackBerry-htm...

    Team Pushwoosh

    www.pushwoosh.com

  • Device not receiving push notifications

    I'm trying to use push essentials.  All my messages received a '1001' with a description of:

    "The request has been accepted for processing, but the final outcome is not yet known. This code is used in response to a request to indicate that the message was received by the PPG and seems to be well formed and valid. »

    However, the messages do not reach the device.

    I was able to reproduce the same behavior using the "low-level-sample" is a part of the push SDK service.  I can see the data arrows in the upper right flashes each time a push notification is sent, but no real message is received.

    My devices appear as active in the menu "subscription request".

    Thank you.

    Please try to use the sample client application developed for pre - 5.0 devices. First of all, you will have to remove all other applications using the same port to push the device. Once the pre - 5.0 sample is run, you will be able to debug to ensure that the device is registered and you can listen to all incoming messages.

  • Activate the Push Notifications on door Android

    I have questions about the push notification in Android Application (.apk door to .bar).

     


    After reading "creating Push-Enabled Android Apps" and following the steps:

    1. Generate the android app and the sign;
    2. Porting of the apk using command line tools (apk2bar.bat);
    3. Add android.cfg in .bar  
      
      
         
            MY_APPID
            http://cpMY_APPID.pushapi.eval.blackberry.com
         
      
      

      and include clear permission (Entry-Point-System-stock: _sys_use_consumer_push)

    4. Sign the .bar using command line tools (batchbar - sign .bat);
    5. Installation using command line tools (blackberry - deploy.bat) .bar on BlackBerry (Dev Alpha B);

    QUESTIONS

    1. The steps are correct?
    2. On the device, the application must appear in the notification configuration? (Settings > Notifications > Notifications / alerts)
    3. Send the process, statements:
      Response CODE: 1001
      Response DESC: The request has been accepted for processing.
      

      It's okay?

    1 yep

    2. notifications! = Push. If you have any questions about the integration of Notifications please report it to the Android Council

    3. it is the answer for a valid push message sent

  • Exception in Push Notification BIS

    Hello

    I'm new to the development of BlackBerry applications. I wrote a Java for Push Notification using PushSDKProperties class.

    My class is given below.

    public

    class {PushServer}

    private public static String password = "password";

    private public static String targetURL = "targetURL;

    private public static final String APP_ID = "app_id";

    private public static PushSDKProperties getProperties() {}

    PushSDKProperties = PushSDKProperties

    new PushSDKPropertiesImpl();

    () pushSDKProperties.setPpgAddress

    targetURL);

    () pushSDKProperties.setUsingPublicPush

    ( true) ;

    () pushSDKProperties.setHttpIsPersistent

    ( fake) ;

    pushSDKProperties.setHttpConnectionTimeout (60000);

    pushSDKProperties.setHttpReadTimeout (120000);

    () pushSDKProperties.setUsingXmlParserDtdValidation

    ( fake) ;

    System.

    out.println (pushSDKProperties);

    Return pushSDKProperties;

    }

    public public static Date of futureDate (int day) {}

    long futureDateMS = System.currentTimeMillis () + ((long) days) * 24 * 60 * 60 * 1000;

    Date futureDate =

    new Date();

    futureDate.setTime (futureDateMS);

    Return futureDate;

    }

    public public static void main (String [] args) {}

    try {

    IdGenerator idGenerator =

    new IdGeneratorImpl();

    = Address list

    new ArrayList();

    DeliverBeforeTimestamp date = futureDate (90);

    Addresses.Add ("push_all");

    () Addresses.Add

    "correct_address");

    () Addresses.Add

    "Incorrect_address");

    PushMessageControl = PushMessageControl

    new PushMessageControl (APP_ID idGenerator, addresses);

    pushMessageControl.setDeliverBeforeTimestamp (deliverBeforeTimestamp);

    Content content =.

    new TextContent ("Hello World");

    PapService = PapService

    new PapServiceImpl();

    PushSDKProperties pushSDKProperties = getProperties();

    Customer HttpClientImpl =

    new HttpClientImpl();

    client.setPushSDKProperties (pushSDKProperties);

    papService.setHttpClient (customer);

    papService.setPushSDKProperties (pushSDKProperties);

    System.

    out.println ("1". (+ papService);

    System.

    out.println ("2". (+ pushMessageControl);

    System.

    out.println ("3." Until this exception no.");

    System.

    out.println ("4." + pushSDKProperties.getPpgAddress ());

    String pushId1 = pushMessageControl.getPushId ();

    PushResponse response = papService.push)

    APP_ID, password, APP_ID, pushMessageControl, content);

    System.

    out.println (Response.GetDescription ());

    System.

    out.println (Response.GetResult ());

    System.

    out.println (Response.getPushId ());

    System.

    out.println (Response.GetCode ());

    }

    catch (UnauthorizedException at an e) {

    e.getCause ();

    }

    catch (E PushSDKException) {

    e.getCause ();

    }

    catch (E BadMessageException) {

    e.getCause ();

    }

    catch (Exception e) {

    e.printStackTrace ();

    e.getCause ();

    }

    }

    }

    My code works fine for a single address (correct address / valid device) and my device is to pass the Notification Message.

    My problem is with the sending of the Notification to multiple devices. If I give more than one address and one of the addresses is wrong / bad / address belongs to the unit is turned off, then his throw me the BadMessageException - response Code 2000 invalid / missing attribute...

    My Question is how can I make my code works regardless of the address correct or incorrect, I want to say how can I get the code of individual response for each address / device.
    I want success message to the correct and invalid address error code / message for the invalid / incorrect address.

    What should I do? Any code changes or anything?

    Help, please.

    Thanks in advance...

    Even if it is an arbitrary pine which is 8 digits then you should not return BadMessageException.

    The General to push hypothesis, is that you're doing a fire-and-forget.  Send you the thrust of all of the addresses and it will be reliable send it to a BlackBerry smart phone (if this device has your running application has registered to receive impulses) without requiring you need to check on the status of the final delivery.

    On your side, you must maintain a list of the pins that are registered to receive the growth of your application so that you know what devices you can send push to.

    Matt

  • BB10 Push notification: PushPayLoad

    I'm developing a c# application that can send a push notification to BB10 devices using Blackberry Internet Service, I found a code it works well, however I don't know how to add custom to the push, data data that can be access with the push as pushPayLoad and used that is when user click on the push notification , it will run my native application bb10 then navigate to the user window or any other open window as required bussiness

    Here are my c# code:

    HttpWebResponse HttpWRes = null;
                HttpWebRequest HttpWReq = null;
    
                string pin = "push_all";
                string applicationID = "ApplicationID";
                string BOUNDARY = "ASDFaslkdfjasfaSfdasfhpoiurwqrwm";
                string msg = "Good morning"; // the message to send
    
                string userName = "ApplicationID";//"YOUR_APPLICATION_ID";
                string userPW = "YourPassword";//"YOUR_PASSWORD";
    
                string url = "https://pushapi.eval.blackberry.com/mss/PD_pushRequest";
    
                HttpWReq = (HttpWebRequest)WebRequest.Create(url);
    
                //SetProxy(HttpWReq); //if proxy needed, use this
    
                HttpWReq.Method = ("POST");
                HttpWReq.Accept = "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2";
                HttpWReq.KeepAlive = true;
                //HttpWReq.Credentials = new NetworkCredential(userName, userPW);
    
                HttpWReq.PreAuthenticate = true;
                HttpWReq.ContentType = "multipart/related; boundary=" + BOUNDARY + "; type=application/xml";
    
                SetBasicAuthHeader(HttpWReq, userName, userPW);
                StringBuilder dataToSend = new StringBuilder();
    
                dataToSend.AppendLine("--" + BOUNDARY);
                dataToSend.AppendLine("Content-Type: application/xml; charset=UTF-8");
    
                dataToSend.AppendLine("");
                dataToSend.AppendLine("http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd\">");
                dataToSend.AppendLine("");
                string myPushId = DateTime.Now.ToFileTime().ToString();
                string deliverBefore = DateTime.UtcNow.AddMinutes(5).ToString("s", System.Globalization.CultureInfo.InvariantCulture) + "Z";
                dataToSend.AppendLine("");
    
                dataToSend.AppendLine("
    "); dataToSend.AppendLine(""); dataToSend.AppendLine(""); dataToSend.AppendLine(""); dataToSend.AppendLine("--" + BOUNDARY); dataToSend.AppendLine("Content-Type: text/plain"); dataToSend.AppendLine("Push-Message-ID: " + myPushId); dataToSend.AppendLine(""); dataToSend.AppendLine(msg); dataToSend.AppendLine("--" + BOUNDARY + "--"); dataToSend.AppendLine(""); Stream requestStream = null; string pushResult = ""; try { requestStream = HttpWReq.GetRequestStream(); } catch (Exception ex) { pushResult = "Push failed! " + ex.ToString(); } byte[] outStr = new UTF8Encoding().GetBytes(dataToSend.ToString()); requestStream.Write(outStr, 0, outStr.Length); requestStream.Close(); try { HttpWRes = (HttpWebResponse)HttpWReq.GetResponse(); } catch (Exception ex) { //push failed } if (HttpWRes != null) { HttpWRes.Close(); }

    What are the changes that I must code to send data as well as the thrust as profileId = 123?

    After much trial and error, I finally found the answer: adding "msg" I can add all payload elements I want:

    MyStringBuilder.AppendLine ("profileId"+":" + "AAB123");

    MyStringBuilder.AppendLine ("postId"+":" + "4567");

    MyStringBuilder.AppendLine (msg);

  • Not able to receive a Push Notification with App ID: 4531-* a76s4

    Hello

    I'm new to the Blackberry development,

    I signed up with the service to Push Black berry assessment

    and received the AppID as: 4531-* a76s4,.

    I used this App ID to test Push notifications for my sample Application,

    can I use the same ID App for multiple Applications to receive Push Notifications,

    because I can't register a new ID app for my other applications,

    Please suggest on this.

    Credentials EVAL, you can use the same credentials to push without much concern.

    However in general for PROD you wish to push single credential by application to avoid accidentally sending a big boost for an application to several applications. And since you want to PROD unique credentials for each application (except if you share them grows) then you can go as well with unique EVAL references as well.

    Why are you unable to save of new credentials to push for your second app?

  • Get a Push notification on app without head and application

    Hello

    I have included an app without a head for my current application, because I am handling becomes class PushService when push comes this application without a head. But I pushservice in running my application also to get called when comes to push, and my request for traffic not called when the push... How can I get push notifications in both without head and noraml app.

    You can take a look at the documentation
    https://developer.BlackBerry.com/native/documentation/Cascades/device_platform/headless_apps/

Maybe you are looking for