distriqt / ANE-Parse

Provides access to the Parse SDK
https://airnativeextensions.com/extension/com.distriqt.Parse
Other
0 stars 0 forks source link

Duplicate symbol errors #19

Open Haunschild opened 8 years ago

Haunschild commented 8 years ago

When I try to build my app with the parse ane (inkluding the bolts and core ane) I get the following errors: error

What am I missing?

marchbold commented 8 years ago

Most likely that's an issue with the version of AIR that you are using, can you make sure you are using a recent release?

Haunschild commented 8 years ago

It is working now (using Air SDK 21 or 22) but I have another problem: I see push notification (iOS) when I send them but:

marchbold commented 8 years ago

Have you included the support ANEs, in particular the Core ANE?

Haunschild commented 8 years ago

Yes, if I do not include the Core Ane (or Bolts) I get errors building the app. I initialize the Core first, correct?

Core.init(); Parse.init(AppConfig.DISTRIQUT_KEY);

Haunschild commented 8 years ago

Everything else works fine (register, subscribing to channels, unsubscribe)

marchbold commented 8 years ago

Yes that's correct.

Can you get us the console logs when the crash occurs?

http://airnativeextensions.com/knowledgebase/faq/11

Haunschild commented 8 years ago

Here are the device logs (when opening the app via notification and it is not running in the background):

Jun 16 11:54:45 Till com.apple.xpc.launchd[1] <Error>: assertion failed: 13F69: launchd + 116796 [9F6284CF-8A17-36CC-9DB5-85D510A21F14]: 0x3
Jun 16 11:54:46 Till Flugstream[13523] <Warning>: DTNotifications::addObversers
Jun 16 11:54:46 Till Flugstream[13523] <Warning>: com.distriqt.Parse::PushNotificationsManager::didFinishLaunchingWithOptions
Jun 16 11:54:46 Till Flugstream[13523] <Warning>: com.distriqt.Parse::handleRemoteNotification: userInfo startup: 1
Jun 16 11:54:46 Till Flugstream[13523] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
    *** First throw call stack:
    (0x181c9adb0 0x1812fff80 0x181b7e1a0 0x181b89c48 0x18717a838 0x18717d890 0x186ef33cc 0x10065e708 0x10068812c 0x100686b9c 0x10070cb34 0x10070d448 0x10063548c 0x10070c18c 0x1003c6f24 0x100591dc0 0x1005914b0 0x1005910b4 0x10054146c 0x10054146c 0x10054146c 0x10054146c 0x10054146c 0x10054146c 0x10054146c 0x10059163c 0x100591dc0 0x1005910b4 0x10054146c 0x10059163c 0x100591dc0 0x1005910b4 0x10054146c 0x10054146c 0x10054146c 0x10054146c 0x10054146c 0x10000a800 0x10000af1c 0x100287090 0x1000d6de8 0x1000d780c 0x10001cc7c 0x1847d4234 0x1847d40e8 0x181f11e54 0x181c39030 0x181c517d4 0x181c50f0c 0x181c4ec64 0x181b78c50 0x183460088 0x186e62088 0x1000ff754 0x1817168b8)
Jun 16 11:54:46 Till SpringBoard[12014] <Warning>: BSXPCMessage received error for message: Connection interrupted
Jun 16 11:54:46 Till SpringBoard[12014] <Warning>: Unable to bootstrap_check_in() to namedDelegatePort 'com.apple.usernotifications.aps'. APS connections will not persist past process lifetime.
Jun 16 11:54:46 Till SpringBoard[12014] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Jun 16 11:54:46 Till SpringBoard[12014] <Warning>: UNNotificationRegistrarConnectionListener connection invalidated
Jun 16 11:54:46 Till diagnosticd[13321] <Error>: error evaluating process info - pid: 13523, puniqueid: 13523
Jun 16 11:54:46 Till com.apple.xpc.launchd[1] (UIKitApplication:flugstream.com[0x563d][13523]) <Notice>: Service exited due to signal: Abort trap: 6
Jun 16 11:54:46 Till SpringBoard[12014] <Warning>: Application 'UIKitApplication:flugstream.com[0x563d]' crashed.
Jun 16 11:54:46 Till UserEventAgent[11977] <Warning>: 20635957867246: id=flugstream.com pid=13523, state=0
Jun 16 11:54:47 Till ReportCrash[13525] <Notice>: Formulating report for corpse[13523] Flugstream
Haunschild commented 8 years ago

This are the logs for opening the notification when the app is running in the background (I do not receive any events in AS3):

Jun 16 12:00:02 Till SpringBoard[12014] <Warning>: SBLockScreenNotificationListController: Attempting to remove a bulletin I don't have
Jun 16 12:00:08 Till SpringBoard[12014] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Jun 16 12:00:08 Till SpringBoard[12014] <Warning>: SBLockScreenNotificationListController: Attempting to remove a bulletin I don't have
Jun 16 12:00:08 Till Flugstream[13529] <Warning>: com.distriqt.Core::didReceiveRemoteNotification:fetchCompletionHandler
Jun 16 12:00:08 Till Flugstream[13529] <Warning>: DTNotifications::didReceiveRemoteNotificationFetchCompletionHandler
Jun 16 12:00:08 Till Flugstream[13529] <Warning>: com.distriqt.Parse::ParseGetSubscriptions
Jun 16 12:00:08 Till Flugstream[13529] <Warning>: com.distriqt.Parse::getSubscriptions
Jun 16 12:00:21 Till eventkitsyncd[13445] <Notice>: (Error) CompanionSync: <SYSendingSession.m -[SYSendingSession _processNextState]:532> SYSession entered error state. Error = Error Domain=SYErrorDomain Code=2007 "The transaction timed out." UserInfo={NSLocalizedDescription=The transaction timed out.}
Haunschild commented 8 years ago

I am also having the problem, that your message ane crashes (when used next to the parse ane) when opening any share option (mail, sms, ...). It seems to be the same error as with the parse ane:

Jun 16 12:02:47 Till Flugstream[13529] <Warning>: com.distriqt.Message::MessageSendMailWithOptions()
Jun 16 12:02:47 Till Flugstream[13529] <Warning>: com.distriqt.Message::isMailAvailable 1
Jun 16 12:02:47 Till Flugstream[13529] <Warning>: com.distriqt.Message::MessageSendMailWithOptions:: Array length = 0
Jun 16 12:02:47 Till Flugstream[13529] <Warning>: com.distriqt.Message::MailHelper::sendMail()
Jun 16 12:02:47 Till MailCompositionService[13532] <Error>: assertion failed: 13F69: libxpc.dylib + 74480 [FC63A0A5-0552-3F7F-AC2C-4EA9D9662BA1]: 0x7d
Jun 16 12:02:47 Till Unknown[13532] <Error>: 
Jun 16 12:02:47 Till UserEventAgent[11977] <Warning>: Tracking com.apple.MailCompositionService (via activity)
Jun 16 12:02:47 Till com.apple.xpc.launchd[1] <Error>: assertion failed: 13F69: launchd + 116796 [9F6284CF-8A17-36CC-9DB5-85D510A21F14]: 0x3
Jun 16 12:02:48 Till Flugstream[13529] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
    *** First throw call stack:
    (0x181c9adb0 0x1812fff80 0x181b7e1a0 0x181b89c48 0x18717a838 0x181ca0a60 0x181b98488 0x18716c65c 0x187176adc 0x18716c7f8 0x1816e547c 0x1816fc090 0x1816e7970 0x1816ea63c 0x181c50d50 0x181c4ebb8 0x181b78c50 0x183460088 0x186e62088 0x1001cb754 0x1817168b8)
Jun 16 12:02:48 Till mediaserverd[13297] <Notice>: '' flugstream.com(pid = 13529) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Jun 16 12:02:48 Till SpringBoard[12014] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Jun 16 12:02:48 Till SpringBoard[12014] <Warning>: UNNotificationRegistrarConnectionListener connection invalidated
Jun 16 12:02:48 Till com.apple.xpc.launchd[1] (UIKitApplication:flugstream.com[0xab18][13529]) <Notice>: Service exited due to signal: Abort trap: 6
Jun 16 12:02:48 Till SpringBoard[12014] <Warning>: Application 'UIKitApplication:flugstream.com[0xab18]' crashed.
Jun 16 12:02:48 Till mediaserverd[13297] <Error>: 12:02:48.251 ERROR:    [0x16eb07000] >va> 505: Error 'what' getting client format for physical format [ 16/44100/2; flags: 0xc; bytes/packet: 4; frames/packet: 1; bytes/frame: 4;  ]
Jun 16 12:02:48 Till UserEventAgent[11977] <Warning>: 20647508707667: id=flugstream.com pid=13529, state=0
marchbold commented 8 years ago

Which version of AIR are you using? I have a feeling this error is related to a buggy version of AIR. Have you tried updating to the most recent AIR 22 beta?

Haunschild commented 8 years ago

I did already use the Beta Air SDK 22, but I did not set the swf-version tag to 33. So the solution was to add this to the compiler options: "-sef-version=33"

Two other (small) problems:

Haunschild commented 8 years ago

I made a mistake concering ParseEvent.NOTIFICATION getting triggered twice, it is one ParseEvent.NOTIFICATION and one ParseEvent.BACKGROUND_NOTIFICATION event.

But I still have the other problems

marchbold commented 8 years ago

Hi,

So you are successfully retrieving notifications when the application isn't running but not when it's running in the foreground or background?

Are you using any other ANEs? Sometimes other ANEs can override our reception of the application delegate methods.

Haunschild commented 8 years ago

Correct, but I have the same problem using only com.distriqt.Bolts.ane, com.distriqt.Core.ane and com.distriqt.Parse.ane (before I also used your maps and message extensions).

marchbold commented 8 years ago

Okay let me see if we can replicate the issue.

What content are you sending from Parse?

Haunschild commented 8 years ago

I tried normal text push and json push messages (from the rest api and from the dashboard). Both works fine if the app launches for the first time with the notification. I receive all the data in the ParseEvent.NOTIFICATION and in the ParseEvent.BACKGROUND_NOTIFICATION event. But once the app is running (in the background) no event gets triggered.

Only tested on iOS devices. I am using Flashdevelop with the latest Beta SDK of Adobe Air.

I also tried using NativeApplication.nativeApplication.addEventListener( InvokeEvent.INVOKE, onInvoke ); to receive the notification data but I only get e.reason == InvokeEventReason.STANDARD instead of NOTIFICATION.

Haunschild commented 8 years ago

Is there any other way to receive the notification event/data?

marchbold commented 8 years ago

Hi,

Not at this point, we are trying to replicate your issue here and will let you know how we go. Could you let us know exactly what devices you are having this issue on? Include platforms and versions.

Cheers

Haunschild commented 8 years ago

Same result in my iPad Mini 2 and on my iPhone 6 both running iOS 9.3.2

Two more questions:

marchbold commented 8 years ago

Parse have opened up their SDK since the shutdown so yes we are supporting private Parse servers in the next release! (This issue will track the development: #20)

We should be able to start customising the API soon too, however I believe you should be able to control the popup from the content you send at the moment?

Haunschild commented 8 years ago

Did not know about the possibility to disable the popup via the notification. I will try it. Do you already have a release date for the new version of the ane?

marchbold commented 8 years ago

The next release of the Parse ANE should be later this month. Cheers