Jason,

You need to do this integration on the native side. Are you using AppDelegate override on iOS and QtActivity override on Android? You will need to do it. You will also need the respective libs from Parse (iOS & Android)

On iOS you will need to have a file like this:

Attachment: AppDelegate.mm
Description: Binary data


And in your main, call the last function AppDelegateInitialize

Then on your .pro you need to link with the libraries:

ios {
    OBJECTIVE_SOURCES += $$PWD/AppDelegate.mm

    INCLUDEPATH += $$PWD/frameworks/Parse.framework/Headers \
                   $$PWD/frameworks/Bolts.framework/Headers

    LIBS += -framework Parse -framework Bolts -frameworks CoreMidi -framework AudioToolbox -framework MobileCoreServices -framework CoreLocation -framework CFNetwork -framework AdSupport -framework FBSDKCoreKit
}

On Android you just need to place the Parse-X.Y.Z.jar inside the android/libs dir but you will need to tweak the AndroidManifest.xml and say that:

<application android:name=“com.your_company.your_product.Application" android:label="@string/app_name" android:icon="@drawable/icon" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" >

Do the same for activity if you need to override Activity. I also override activity but I think it is not necessary for push notifications with Parse.

Place this file under com/your_company/you_product

Attachment: Application.java
Description: Binary data


Then you just need to create the Parse application on the Parse portal and update the keys.

It was a quick and rough summary of the necessary steps. Maybe some of them are already familiar to you. Let me know if you have questions

Regards,

Nuno Santos
Founder / CEO / CTO
www.imaginando.pt
+351 91 621 69 62

On 07 Dec 2015, at 15:29, Jason H <jh...@gmx.com> wrote:


Sent: Monday, December 07, 2015 at 10:23 AM
From: "Nuno Santos" <nunosan...@imaginando.pt>

Jason,
 

...
 I use Parse to handle Push notifications for me (www.parse.com[http://www.parse.com]). Have you tried it? It saves you a lot of hassle.

...
 
Nuno
 
 
I have heard of Psrse, and that they have push notifications,  but I couldn't find out how to integrate it with Qt.

Can you share some insights?

Thanks!

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to