distriqt / ane-parse Goto Github PK
View Code? Open in Web Editor NEWProvides access to the Parse SDK
Home Page: https://airnativeextensions.com/extension/com.distriqt.Parse
License: Other
Provides access to the Parse SDK
Home Page: https://airnativeextensions.com/extension/com.distriqt.Parse
License: Other
Build from Feathers 3.1.0 AIR 23.0 Target Andriod
Error occurred while packaging the application:
aapt tool failed:Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
C:\Users\WINDOWS\AppData\Local\Temp\907767ed-781f-4aed-bf28-cec2d79cdd7b\AndroidManifest.xml:65: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
In the Parse SDK for Android, there is a function "put()" in the ParseObject class. This can be quite useful for storing custom values against each installation. eg
ParseInstallation.getCurrentInstallation().put("alias", "testuser");
ParseInstallation.getCurrentInstallation().saveInBackground(new SaveCallback() {
//handle callback });
I'm not too good with Objective C, but I assume the same functionality is available in the iOS SDK.
Would it be possible to make this available in the ANE? eg in AS3: Parse.service.getCurrentInstallation().put("key", "value");
Parse.service.getCurrentInstallation().saveInBackground();
Cheers,
Martin
Hi Guys,
Have you any plans to add Parse Crash Reporting to this ANE? From what I can tell, its just one line of code in the native SDK. I think this would be be quite a useful feature.
http://blog.parse.com/learn/introducing-parse-crash-reporting-2/
Cheers,
Martin
Hi, I would like to be able to react differently to push notifications depending on the situation. If the application is currently opened, I would like to suppress a push notification that gets received. I would also like to be able to group similar notifications together so they do not clutter up the list. Sorry if these can already be done -- it looked like in order to implement these, I would need to write a custom BroadcastReceiver? And I don't think I can with the ANE currently.
Hi, we have received errors from android developer console.
java.lang.RuntimeException: Unable to start receiver com.parse.ParseBroadcastReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context com.parse.ParsePlugins$Android.applicationContext()' on a null object reference
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2750)
at android.app.ActivityThread.access$1800(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1433)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5525)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context com.parse.ParsePlugins$Android.applicationContext()' on a null object reference
at com.parse.Parse.checkContext(Parse.java:449)
at com.parse.Parse.getApplicationContext(Parse.java:279)
at com.parse.ManifestInfo.getContext(ManifestInfo.java:319)
at com.parse.ManifestInfo.getPackageManager(ManifestInfo.java:323)
at com.parse.ManifestInfo.getPackageInfo(ManifestInfo.java:349)
at com.parse.ManifestInfo.isGooglePlayServicesAvailable(ManifestInfo.java:464)
at com.parse.ManifestInfo.getPushType(ManifestInfo.java:199)
at com.parse.PushService.startServiceIfRequired(PushService.java:191)
at com.parse.ParseBroadcastReceiver.onReceive(ParseBroadcastReceiver.java:27)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2743)
... 8 more
Build with FlashBuilder 4.7 window (build ios)
Error occurred while packaging the application:
Undefined symbols for architecture arm64:
"_BFTaskMultipleExceptionsException", referenced from:
___81+[PFObject(Private) _deepSaveAsyncChildrenOfObject:withCurrentUser:sessionToken:]_block_invoke218 in Parse(PFObject.o)
"_OBJC_CLASS_$_BFTaskCompletionSource", referenced from:
objc-class-ref in Parse(PFAsyncTaskQueue.o)
objc-class-ref in Parse(PFURLSessionDataTaskDelegate.o)
objc-class-ref in Parse(PFProductsRequestHandler.o)
objc-class-ref in Parse(PFOfflineStore.o)
objc-class-ref in Parse(PFEventuallyQueue.o)
objc-class-ref in Parse(PFSQLiteDatabase.o)
objc-class-ref in Parse(PFFileController.o)
...
"_kBFMultipleErrorsError", referenced from:
___63-[PFObjectBatchController deleteObjectsAsync:withSessionToken:]_block_invoke100 in Parse(PFObjectBatchController.o)
"_OBJC_CLASS_$_BFExecutor", referenced from:
objc-class-ref in Parse(PFCommandURLRequestConstructor.o)
objc-class-ref in Parse(PFUserController.o)
objc-class-ref in Parse(PFCommandCache.o)
objc-class-ref in Parse(PFUserAuthenticationController.o)
objc-class-ref in Parse(ParseManager.o)
objc-class-ref in Parse(PFObjectController.o)
objc-class-ref in Parse(PFOfflineQueryLogic.o)
...
"_BFTaskErrorDomain", referenced from:
___63-[PFObjectBatchController deleteObjectsAsync:withSessionToken:]_block_invoke100 in Parse(PFObjectBatchController.o)
"_OBJC_CLASS_$_BFCancellationTokenSource", referenced from:
objc-class-ref in Parse(PFQuery.o)
objc-class-ref in Parse(PFFile.o)
"_OBJC_CLASS_$_BFTask", referenced from:
objc-class-ref in Parse(PFCommandURLRequestConstructor.o)
objc-class-ref in Parse(PFUserController.o)
objc-class-ref in Parse(PFAsyncTaskQueue.o)
objc-class-ref in Parse(PFCommandCache.o)
objc-class-ref in Parse(PFUserAuthenticationController.o)
objc-class-ref in Parse(ParseManager.o)
objc-class-ref in Parse(PFObjectController.o)
...
ld: symbol(s) not found for architecture arm64
Undefined symbols for architecture armv7:
"_BFTaskMultipleExceptionsException", referenced from:
___81+[PFObject(Private) _deepSaveAsyncChildrenOfObject:withCurrentUser:sessionToken:]_block_invoke218 in Parse(PFObject.o)
"_OBJC_CLASS_$_BFTaskCompletionSource", referenced from:
objc-class-ref in Parse(PFAsyncTaskQueue.o)
objc-class-ref in Parse(PFEventuallyQueue.o)
objc-class-ref in Parse(PFOfflineStore.o)
objc-class-ref in Parse(PFProductsRequestHandler.o)
objc-class-ref in Parse(PFURLSessionDataTaskDelegate.o)
objc-class-ref in Parse(PFFileController.o)
objc-class-ref in Parse(PFSQLiteDatabase.o)
...
"_kBFMultipleErrorsError", referenced from:
___63-[PFObjectBatchController deleteObjectsAsync:withSessionToken:]_block_invoke100 in Parse(PFObjectBatchController.o)
"_OBJC_CLASS_$_BFExecutor", referenced from:
objc-class-ref in Parse(PFCommandURLRequestConstructor.o)
objc-class-ref in Parse(PFEventuallyQueue.o)
objc-class-ref in Parse(PFCloudCodeController.o)
objc-class-ref in Parse(PFURLSessionCommandRunner.o)
objc-class-ref in Parse(PFUserDefaultsPersistenceGroup.o)
objc-class-ref in Parse(PFPinningObjectStore.o)
objc-class-ref in Parse(PFPersistenceController.o)
...
"_BFTaskErrorDomain", referenced from:
___63-[PFObjectBatchController deleteObjectsAsync:withSessionToken:]_block_invoke100 in Parse(PFObjectBatchController.o)
"_OBJC_CLASS_$_BFCancellationTokenSource", referenced from:
objc-class-ref in Parse(PFQuery.o)
objc-class-ref in Parse(PFFile.o)
"_OBJC_CLASS_$_BFTask", referenced from:
objc-class-ref in Parse(PFCommandURLRequestConstructor.o)
objc-class-ref in Parse(PFAsyncTaskQueue.o)
objc-class-ref in Parse(PFCachedQueryController.o)
objc-class-ref in Parse(PFTaskQueue.o)
objc-class-ref in Parse(PFEventuallyQueue.o)
objc-class-ref in Parse(PFCloudCodeController.o)
objc-class-ref in Parse(PFURLSessionCommandRunner.o)
...
ld: symbol(s) not found for architecture armv7
Compilation failed while executing : ld64
Hello,
I am in an urgent need of support with the following issue:
I have a game that integrates Milkman's GoViral ANE for Facebook.
I have just integrated your ANE for Parse in order to integrate Push Notifications from there.
On Android all works like a charm but when I build for iOS I get the following error:
I have seen that the Bolts.ane that I have included could overlap with the facebook ANE so you have separated these frameworks so they can be removed if a problem like that appears.
So I have commented the Bolts.ane hoping this would solve the issue because all needed items are already in the Milkman's GoViral one. Unfortunately that didn't work also and I get the following error:
I have searched in google and I have seen that another user in stackoverflow has solved this (in a native project) by adding only parse and facebook libs and then adding this piece of code:
NSString *const BFTaskMultipleExceptionsException = @"BFMultipleExceptionsException";
in the AppDelegate.m
I cannot do that obviously but is it possible that you can help me with this issue. I really need to release the game today and this is the last piece that doesn't work. Please advice me on how to proceed.
Hi, i try use your example code to my app
it not request notification dialog ? ...
my code or example code wrong
I've built my app for iOS and android.
Android's fine and behaves as expected but on iOS if the app's open when it receives a PN from Parse then the app crashes/closes.
I've tested on an iPhone 4S, iOS 8.3 and an iPhone 5s, iOS 8.4.1. Same thing happens on both.
If I receive a PN from another source (i.e. facebook) when the app's open it's fine - the PN slides in over the top of the app, but as soon as it gets one registered to itself it bombs out.
It may be that I'm missing something but have gone through the TestParse example and am pretty sure it's set up as should be - also as I say it works fine on regitsering the device/installation and receiving PN's from APN - it's only if the app's open that it crashes.
Any ideas?
Thanks
Adding the server url to configuration to set the Parse SDK to communicate with a custom install of the Parse server.
When receiving a push-notificaiton on iOS the NOTIFICATION-event is not fired.
The FOREGROUND_NOTIFICATION / BACKGROUND_NOTIFICATION and NOTIFICATION_SELECTED-events are fired though, but it would be nice to be able to implement using the same events on both iOS and Android.
I try to use your sample code to build the app, but after run the app, the installation didn't add into Parse Installation, can you check on this
please update the getting started guide and docs to include the step to update the android build tools for AIR to a newer version. Failure to update the tools results in a class not found exception. Here is the link to you (great) guide for doing so:
http://airnativeextensions.com/knowledgebase/tutorial/5
you probably need to add this in as a generic step for all you Android ANE's (cause it really helps anyone with ANE issues )
All I did so far was initialize core and parse en traced Parse.isSupported.
This works OK on the simulator (although I do have to quit the simulator every time before starting a debug session, otherwise an error dialog flashes by and the app won't start).
When I try to debug on a device however, the builder says:
Error occurred while packaging the application:
ld: library not found for -lgcc_s.1
ld: library not found for -lSystem.B
Compilation failed while executing : ld64
What am I missing?
Property notificationsEnabled not found on com.distriqt.extension.parse.Parse and there is no default value
I got this error, please check
How can I prevent the alert box showing up on iOS when receiving a push notification?
I want to handle the notification myself.
Does this work with Push Notifications Extension
com.distriqt.extension.pushnotifications.PushNotifications
I have try to put both extension together, Push Notifications Extension no working, here is the trace
[trace] PN Supported: true
[trace] PN Version: 2.7.iOS.3.2
[trace] Parse Supported: true
[trace] Parse Version: 1.8.iOS.1.4
[trace] Parse Notifications Enabled: true
[trace] ACTIVATE
[trace] parse:registering ::
[trace] parse:register:success
[trace] ============= SUBSCRIPTIONS ==================
[trace] CHANNEL:: test_1
[trace] CHANNEL:: test_2
[trace] ==============================================
[trace] parse:register:success
[trace] ============= SUBSCRIPTIONS ==================
[trace] CHANNEL:: test_1
[trace] CHANNEL:: test_2
[trace] ==============================================
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.