Android.cfg BB10 push notification problem

Hello, I have a real problem to make this android.cfg to put in the app.bar file is created but in white and when I try to put it manually with a zip or rar to change, I got an error like the .bar is broken, can someone tell me the correct form for this archive works and not to put it manually?

PS: I'm in Eclipse, a porting android with MCG. I just want to make the archive to create with the server info I put in root next to the manifesto and alaso tried to put next to the apk in the bin folder.

Thank you for your response rincethomas33, I couldn't find your way, but I found the tool that you sign the .bar you can put the 'myapp.cfg' configuration settings in advance

Thanks again for your response.

Ricardo Marquez

Tags: BlackBerry Developers

Similar Questions

  • 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!

  • 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);

  • 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...

  • 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

  • Android Push Notification

    Hello! Because there is no feature for Android Push Notification DPS.

    Are there any good 3rd party tool to use for the Push Notifications in Android and easy to implement for the APK Android?

    I think its very important that users know what happens in their applications.

    Best jan

    I'm not aware of everything and notes that "implement for the APK Android" is against the terms of use for DPS. You shouldn't be trying to change the .apk file downloaded from the App Builder.

    Neil

  • Support for Android Push Notifications

    Hi all

    I found what I was looking for here: Android Push Notification

    But I wanted to follow up a little further and see if the notifications Push Android will apply at any given time? Thank you.

    Us plan to it but don't have a timeline. Do you need it to send notifications of text? Or to trigger a background download?

    Neil

  • Android Push Notification of the release of CWM again using Coldfusion

    Is there any similar push notification solution/tutorial, but this time for the Android?

    Something similar to this tutorial, but with Android using coldfusion to send my server dedicated to registered devices:

    http://www.raymondcamden.com/index.cfm/2010/9/13/guest-post-Apple-push-notifications-from-ColdFusion-in-ten-minutes-or-less

    Thanks in advance

    Talal

    well after diving and testing here and there, I found a way and tested successfully.

    1 > first and foremost, the developer must follow the procedures described in this page:

    http://developer.Android.com/Guide/Google/GCM/GS.html

    2 > on the side of the app, you will send users information devices; But what matters is only the "registration id", so make sure you save this in database coz, you will use it to browse your database files when sending notifications.

    3 > now the script server side of Coldfusion, which is really easy:

    SELECT COUNT (intGCMuserID) AS TotalRecords

    OF gcmusers_tbl

    WHERE appName =

    SELECT use

    OF gcmusers_tbl

    WHERE appName =

    ORDER BY intGCMuserID DESC

    {'data' = {}}

    "title" = "#FORM.title, #

    'message' = ' #FORM.message # '.

    },

    'registration_ids' = #registrationArray #.

    }

    >

    method https://Android.googleapis.com/GCM/Send' = 'post' result = 'httpResp"timeout ="600">

    Sent to: #rs. RecordCount # devices/users

    > > > new

    Title:

    Message:

     

  • BB10 - personalization of Push Notification

    Hi all. Recently, we test an app with our client. The application will receive push notification when there is new claim being created so that the user can be notified and then they can approve/reject the claim.

    When comes the push, there is asterisk on the app, reduced app icon and also a message will be sent to the hub. But the feedback from users during the tests, they prefer to be

    1. have the asterisk on the app icon / minimized app but do not have the message sent to the Hub

    2. If a user clicks on a message to display in the hub, it will remove the message current and later in the hub

    Is it possible to do?

    For no 1, I tried not to call Notification in app.textConversionCallback, so there is no message in the hub, but that stop the asterisk appears on the application icon.

    app.parsePayload = function (){
        try{
            if (app.pushService !== null){
                var pushPayload = app.pushService.extractPushPayload(app.onInvokedInfo);
                app.blobToText(pushPayload.data, "UTF-8", app.textConversionCallback);
                app.onInvokedInfo = null;
            }
        } catch (err) {
         alert("Was unable to parse the invoke request.");
      }
    };
    
    app.blobToText = function (blob, encoding, callback) {
        var reader = new FileReader();
        reader.onload = function(evt) {
            // No errors, get the result and call the callback
            callback(evt.target.result);
        };
    
        reader.onerror = function(evt) {
            app.debug("Error converting Blob to string: " + evt.target.error);
        };
        reader.readAsText(blob, encoding);
    };
    
    app.textConversionCallback = function(str) {
        //try to disable this but push is not working
        //notify.hub(str);
    };
    
    var notify = {};
    
    // Add a notification in the Hub
    notify.hub = function(str) {
      var mclaim = JSON.parse(str)
      {
        if(mclaim.empno)
        {
          var pushCount = parseInt(mclaim.workqcnt);
          if((pushCount > 0) && (pushCount > 1))
          {
            var title = "Pending Claims Notification";
            var isAre = "are";
            var claim = "claims";
          }
          if((pushCount > 0) && (pushCount == 1))
          {
            var title = "Pending Claim Notification";
            var isAre = "is";
            var claim = "claim";
          }
          var content = "There "+isAre+" "+parseInt(pushCount)+" "+claim+" pending for approval.";
          new Notification(title, {body: content});
        }
      }
    };
    

    Regarding No 2, is there a function perform the delete action?

    All advice or suggestion will be greatly appreciated.

    Update on the app icon is directly related to the Notification of the HTML5; It is impossible to trigger the icon unless you use the Notification of HTML5.

    You may write an extension to access the following Native API to set the badge (i.e. the Update icon) to the application:
    https://developer.BlackBerry.com/native/reference/core/com.QNX.doc.bps.lib_ref/com.QNX.doc.bps.lib_r...

    To remove the notifications in the Hub, you can either:
    (1) create all HTML5 Notifications with the same tag; This will force a notification never exist in the hub, with the most recent notification overwriting previous reviews; or
    (2) keep track of all active notification tags and delete is used to remove unwanted notifications.
    https://developer.BlackBerry.com/HTML5/APIs/notification.html#.Remove

  • BB10 - customization BB Hub and Push Notification Messages

    Hi all.

    The push notification are push to the notification in the hub of BlackBerry. Is it possible for example to create a new label to a custom in the hub application and have the notification being pushed in the custom label?

    No, it is not possible for third-party applications.  Only some apps approved (such as FaceBook, Twitter and LinkedIn) have had access to their own 'space' in the hub.

  • How to configure the push notification in BB10?

    Hi all

    I want to do an application based on the concept of send and receive push notification. I'm having difficulties in your Setup. can anyone describe the steps to configure.

    Thanks in advance.

    Have you watched this...

    http://developer.BlackBerry.com/native/documentation/Cascades/device_comm/push/developing_a_push_ena...

    There are also some examples of applications that illustrate push them...

    http://developer.BlackBerry.com/native/sampleapps/

    After that if you're still stuck, it is better to ask questions of Push in this dedicated forum...

    http://supportforums.BlackBerry.com/T5/BlackBerry-push-development/BD-p/Applications_using_Push_Tech...

  • PHP push notification - type registration

    Hello
    I need to send notification messages to peripheral bb10 using my server PHP script. I used the form of evaluation of the BlackBerry Push Service to register, select BlackBerry Internet Service transport for growth and Essentials of push Blackberry as Service Push type.

    I checked the posts, which one who seems to have been resolved (http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Problem-with-SEND-Push-Notificati... and making all kinds of changes to the data to be sent and headers, but not luck: push server does not respond (curl_exec is false) and attempt to parse the xml ends with error)
    An XML parser error occurred
    End of the invalid document

    The sent data now have the form:
    $data = '-'. $boundary.
    '
    http://www.openmobilealliance.org/tech/DTD/pap_2.1.DTD">




    ' .
    '--' . $boundary. "\r\n".
    "Content-Type: text/plain". "\r\n". "
    "Push-Message-ID: '." $messageid. "\r\n\r\n".
    stripslashes ($message). "\r\n".
    '--' . $boundary. '--';

    And transfer curl options are defined as:
    curl_setopt ($ch, CURLOPT_URL, "https://cpXXXX.pushapi.eval.blackberry.com/mss/PD_pushRequest"); (replaced with email of record value xxxx)
    curl_setopt ($ch, CURLOPT_HEADER, false);
    curl_setopt ($ch, CURLOPT_USERAGENT, "SAA push application");
    curl_setopt ($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
    curl_setopt ($ch, curlopt_buffersize, CURLAUTH_BASIC);
    curl_setopt ($ch, CURLOPT_USERPWD, $appid. ':' . $password); (replaced appid and password with the values of the registration email)
    curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);
    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt ($ch, CURLOPT_HTTPHEADER, array ("Content-Type: multipart/related;")) Boundary =". $boundary. "; type = application/xml"));

    2 attempted to use javascript to POST XMLHttpRequest in a page on the same server. The result was:
    XMLHttpRequest does not load https://cpxxxx.pushapi.eval.blackberry.com/mss/PD_pushRequest. No "Access-Control-Allow-Origin" header is present on the requested resource. So, the original 'http://my_server_address' is not allowed access.

    3. I used the same code XMLHttpRequest in webworks launched from z10 camera app (the code can be found here - https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/pushCaptureBasics/pushInitiator) and
    Here is the result:

    .. .and the Capture application seems to take notice, by launching again push (does not display the message, but it's another thing ).

    The only thing that now comes to my mind, it is that the push server does not accept my server push messages. But how do I solve this problem?
    Any guidance is appreciated.

    Well, glad to have found a solution to this: after obtaining the references of Production Service Push BlackBerry have used their and it actually works with this code here http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Cannot-send-PHP-Push-message-usin...

  • IOS app do not compile in phonegap build after adding support for Push Notifications

    As the title says, I have an app for android and iOS using phonegap to build and push-plugin to the repository of the NPM. It worked perfectly for android, but for iOS, the events have not fired. Then I read that the AppID should have the active possibility of push notifications, so I added a development certificate and certificates and files of mobile provision changed.

    After that, the application is not compile more. I also added a certificate SSL Production to my App ID and certificate and files available mobile since I read the development of those who do not work with Phonegap, built on an old post, but that no longer works.

    Am I missing a step to make it work for the iOS with Phonegap Build? Thanks in advance

    Looks like commissioning your profile does not include your developer certificate. Try re-creating your provisioning profile.

    Maybe useful post:

    IOS create problem certificate does not match profile

  • 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!

  • 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.

Maybe you are looking for

  • Trojan.Vundo in Toshiba\Drivers

    I think it came with Toshiba Tempro driver update from February 20.He has been identified by the audit of the Malewarebytes system today, but not taken my McAfee.Is it bad. ? My first Trojan horse (I think) Infected files:C:\Toshiba\Drivers\DVDPlayer

  • Pavilion xt 973: Pavilion it 3d

    I have an old xt pavilion 973 who died... He needs a recovery? disc where can I gey one... Thank you

  • Satellite M40 will not stop, restart, or go into sleep mode

    HelloI need help with my laptop. Recently, I was unable to shut down my computer. After trying to close it through windows, the screen goes black, but the system and the light around the power button remains on. I can only turn off my computer by hol

  • header information announcements

    Hallo zusammen, There are the opportunity VBS über sich alle Headerinformationen (TDM) show zu lassen? Thomas

  • HP Office jet Pro 8600 is not using ink magenta or yellow

    Recently, I've changed the ink cartridges black and cyan hp recommended but no real products. Since then, the machine only prints in cyan and black. I've now loaded with hp real poducts, nothing helps. I cleaned the printhead several times without su