Pushwoosh with Qt/QML

Comments

5 comments

  • Avatar
    Max Konev

    What platform are you working with?

  • Avatar
    Markovetf

    Hi Shader,

    I am try to build Android mobile application with Qt/QML and want to integrate pushwoosh in order to received notification and eventually and parse that notifications. I am working on Linux as OS where i am build project.

    Regards,

  • Avatar
    Max Konev

    You just need to add Pushwoosh Android SDK to your project as external library (jar) and integrate with the Android API of the sdk

    I'm not sure, but maybe this link would help:
    http://stackoverflow.com/questions/32018316/adding-external-library-into-qt-android-project

  • Avatar
    Markovetf

    Hi Shader, Yes i success to add Pushwoosh Android SDK to your project as external library (jar).

    I have make successful registration of the user. This is what server response :

    Pushwoosh request: I/Pushwoosh(25226): | Url: https://cp.pushwoosh.com/json/1.3/registerDevice I/Pushwoosh(25226): | Payload: {"request":{"device_type":"3","jailbroken":1,"userId":"6770fb2d52eee9df","android_package":"net.vplay.plugins.Promotion","timezone":3600,"v":"3.2.3.638","app_version":"1.0","sounds":["bubble","push_sound","silence"],"device_model":"Samsung SM-G531F","device_name":"Phone","push_token":"frIDWLxtHLw:APA91bHwKy9VGuHM_3qLwnoRDQgtGB56HuPVLaZ-Bs-nibp4L-CGJW55T8FqtNeGyw8GUjkybKIGZAC5_1bgukCFcF91SYkFIxFABka05KCd4LMAkgfJ1GV3A23AhB4Tx6GazBPpz6vD","os_version":"5.1.1","language":"en","application":"FCF01-1022B","hwid":"6770fb2d52eee9df"}} I/Pushwoosh(25226): | Response: {"status_code":200,"status_message":"OK","response":null} I/Pushwoosh(25226): x D/Pushwoosh(25226): [RequestManager] registerDevice response success V/Pushwoosh(25226): [RegistrationPrefs] Setting registered on server status as: true W/Pushwoosh(25226): [DeviceRegistrar] Registered for pushes: frIDWLxtHLw:APA91bHwKy9VGuHM_3qLwnoRDQgtGB56HuPVLaZ-Bs-nibp4L-CGJW55T8FqtNeGyw8GUjkybKIGZAC5_1bgukCFcF91SYkFIxFABka05KCd4LMAkgfJ1GV3A23AhB4Tx6GazBPpz6vD

    But i have problem to received notifications, can you give me further instruction what to do to start receiving notification on my device?

    Thanks in advance.

  • Avatar
    Max Konev

    Hi, You need to follow the Android guide and to know what Android activity do you use in your QT app. You have to extend this Activity or use Custom Broadcast Receiver (like here: http://docs.pushwoosh.com/docs/android-faq#using-custom-push-broadcast-receiver-in-android) You'll have to write some Java code there.

Please sign in to leave a comment.