Start a new topic

Arrival notification without IOS

The notifications arrived on the IOS device easily, but after deleting a user who sent notifications to all devices, stopped reaching IOS.

I have already registered the IOS, there in my table of users all the _messaging fields are filled.

I believe the problem has nothing to do with Certificates.p12, since I did not make any changes to the certificate, and until yesterday 09/05/2017 I sent and received all the devices.

I've created an endpoint and am sending to a specific user and the message does not arrive in ios.



function onRequest(request, response, modules) {
    var logger = modules.logger;
    var push = modules.push,
        collectionAccess = modules.collectionAccess;

    collectionAccess.collection('user').find({
        "username": "neuzoiphone4"
    }, function (err, userColl) {
        if (err) {
            logger.error('user not found: ' + err);
        } else {

            var iOSAps = {
                alert: "Teste de envio para Mossoró",
                badge: 2,
                sound: "default.wav"
            };

            var iOSExtras = {
                from: "Teste de envio para Mossoró",
                subject: "Novo Teste 14"
            };

            var androidPayload = {
                message: "Teste de envio para Mossoró",
                from: "SupermerCasa",
                subject: "SupermerCasa - Teste 14"
            };

            push.sendPayload(userColl[0], iOSAps, iOSExtras, androidPayload, function (err, result) {
                        response.body = userColl[0];
                        response.complete(200);
                    });
         
            }
    });
}

The result of sending:


{
  "_id": "xxxxxxxxxxxxxxxxx",
  "username": "neuzoiphone4",
  "_acl": {
    "creator": "5911aeecxxxxxx7f677dc5132"
  },
  "_messaging": {
    "pushTokens": [
      {
        "token": "a78cc3e89145dc2d4cd8496ecb6f7ab805dxxxxxxxxxxxxxxxxxxxxxxxxx",
        "platform": "ios",
        "arn": "arn:aws:sns:us-east-1:853461911189:endpoint/APNS/kid_xxxxxxxxx_production/71d27bb5-154b-xxxx-xxxx-xxxxxxxxxx"
      }
    ]
  },
  "Cidade": "Mossoro",
  "salt": "c97461ec-7b10-4f69-8b64-xxxxxxxxxx",
  "_kmd": {
    "lmt": "2017-05-09T12:33:57.242Z",
    "ect": "2017-05-09T11:58:36.966Z"
  }
}

200 OK 

 

 Where have these "x's," I put it just for the sake of privacy.

Advance that by sending the notification through the menu> Engagement> Push: notifications also only arrive for an...




Hi, Few questions for you:

  1. Who is the other user (User B) sending the notifications?
  2. Was sending push notifications working with the user B earlier?
  3. Are notifications stopped for all the users or specific users?


Thanks,

Pranav

Kinvey

  1. The user I used before to send notifications to both Android and IOS devices was the "supermarket", but I ended up excluding this user for testing purposes, after that deletion I registered a user for the iphone.
    I also logged in with the user who will send the notifications to all devices whose name is "broadcast1"
  2. Yes, when I sent with this user I arrived on both platforms;
    I did a test registering the same user again, it arrives for all less android devices for the iphone.
    I have about 10 cell phones here on my test table.
  3. The notifications stopped arriving just for the iphone, the notifications arrive perfectly on the android.


I have a copy of notifications arriving on both devices.


One interesting thing I noticed on the iphone is that the badge number in the app is the same as the one I sent last time.


 

jSrVS.jpg
(21.1 KB)
Fe126.png
(80.9 KB)
Correcting, the username was: supermercasa

 

Hi, please confirm following points just to check if we are on the same page.

  • With user "SupermerCasa", you were able to receive notifications on both Android and iOS. Now you have deleted this user.
  • Now, you have created new user "broadcast1" who will send notifications to Android and iOS. With this user logged in, you are receiving notifications on Android but not on iOS.


Thanks,

Pranav

Kinvey

Perfect, just that.

Since the day I opened a topic, I'm trying in a variety of ways, but I have not yet succeeded

 

Hello Lunar,


Please send Pranav (pranav@kinvey.com) and me (billy@kinvey.com) via a private email, the token in the _messaging file for the user who is not receiving his push notifications to the iOS device. If there are multiple iOS tokens, please send all of them.


We will use these to check the status of these devices and their tokens with our push service provider.


We're asking to send them via email to us for privacy reasons.


We look forward to hearing back from you.


Regards,


Billy Gee

Okay, thank you so much for your attention.

I'm sending it right now, it's just an IO device, the other registered ones are all Android and both are receiving.

 

Hello Lunar,


Please provide further details about the information being for, "...just an IO device". You mean, "...just an iOS device", correct?

Yes, I have not yet put my application into production, so I am only testing with an IOS device.

Sorry for the delay in answering, I was absent from the company doing external services, but now I'm back.

 

NOTE: On May 23, 2017, Joao Leno sent Pranav and I an email with additional information regarding this problem that was not included in this ticket. Please reference that email and information when working this problem.

Right.

 Is it necessary to send any more information to solve the problem?

 

Good afternoon

Any position on the issue of notifications in IOS?

I have already forwarded the email with all the information needed to solve the problem.

Send token information via sender: joaolenosi@gmail.com

 

Billy Gee or Pranav J, Could you give me a little attention, I need to solve the problem of notification that does not arrive in the iphone to be able to publish the respective update of the application in the respective stores.

 

Hello Joao,


I just sent you a detailed analysis of the results of my investigation into your undelivered push notification. In addition to the analysis, I have asked you to attempt the exact same push again. When you report the findings, please let me know the results and the approximate timestamp including timezone when you sent the push.


Depending upon the results, we will take the next steps at that point.


Regards,


Billy Gee

Login or Signup to post a comment