Closed jainSamy closed 1 year ago
Hello @test-adarsh , This is Illia from Quickblox
In this case you need to add "ios_voip": 1
to the event body. This explains to the server that the push should be with type VOIP if the device is subscribed to the push from iOS.
Hello ,
I am this this request in QBEvent qbEvent = new QBEvent(); qbEvent.setNotificationType(QBNotificationType.PUSH); qbEvent.setEnvironment(QBEnvironment.DEVELOPMENT); StringifyArrayList userIds = new StringifyArrayList<>(recipients);
// On conditional qbEvent.setPushType(QBPushType.APNS_VOIP);
JSONObject json = new JSONObject(); try { json.put("message", outMessage); json.put("ios_voip", "1"); json.put("VOIPCall", "1"); json.put("sessionID", sessionID); json.put("opponentsIDs", CallerID + "," + recipients.get(0)); json.put("contactIdentifier", senderName + "," + toCall); json.put("caller_name", senderName); json.put("conferenceType", "2"); json.put("device", "android"); } catch (JSONException e) { e.printStackTrace(); }
QBPushNotifications.createEvent(qbEvent).performAsync(new QBEntityCallback()
Tell me where i am wrong.
Thanks in advanced