Comments (3)
What is the issues Completed ?
from quickblox-android-sdk.
@mathayan321
I have re-opened the issue.
@vdovbnya-qb
Please check the code and write an answer.
from quickblox-android-sdk.
@mathayan321
You are creating a list and trying to iterate over it, but the list is empty. You don't add it opponentId
val userIds1 = StringifyArrayList()
for (user in userIds1!!) {
userIds1.add(opponentId)
}
Try to add opponentId to the list without a loop
val userIds1 = StringifyArrayList()
userIds1.add(opponentId)
val event = QBEvent()
event.userIds = userIds1
event.environment = QBEnvironment.DEVELOPMENT
event.notificationType = QBNotificationType.PUSH
event.pushType = QBPushType.GCM
val customData = HashMap<String, Any>()
customData["data.message"] = text.toString()
customData["data.title"] = currentUser.fullName
customData["data.notification_id"] = 11
event.setMessage(customData)
QBPushNotifications.createEvent(event).performAsync(object : QBEntityCallback<QBEvent> {
override fun onSuccess(qbEvent: QBEvent?, bundle: Bundle?) {
Log.e("QB_notification","send")
Log.e("CustomerData", Gson().toJson(qbEvent))
}
override fun onError(e: QBResponseException?) {
Log.e("PN_error", e?.message.toString())
}
})
from quickblox-android-sdk.
Related Issues (20)
- Not Working push notifications with Latest Firebase bom HOT 3
- Unexpected signature in session api HOT 2
- Message send issue if use same device for two different login HOT 1
- Audio/Video call connection issue (Not calling onReceiveNewSession method when call coming) HOT 1
- Corner Radius in QBRTCSurfaceView HOT 1
- How to assign admin ownership to the second participant in the group HOT 1
- Automatic push subscription doesn't work. HOT 2
- Cannot create push subscriptions for two applications on one device HOT 5
- Crash on call service in android 12 HOT 2
- Cannot upload document files on Quickblox android HOT 6
- Issue with calling when login on multiple devices HOT 9
- Push subscription HOT 12
- Failed to resolve: HOT 1
- App is crashing internally due to the error in the SDK HOT 2
- Send Location and Contacts in Chat HOT 5
- Push Notification not working for call HOT 1
- Dialog Name As my Contact Name HOT 3
- Could not download chat-message-adapter-2.0.aar HOT 5
- QuickBlox CallService Compatibility Issue on Android 14 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickblox-android-sdk.