tuarua / Vibration-ANE

Vibration + Haptic Adobe Air Native Extension for iOS 9.0+, Android 19+
Apache License 2.0
8 stars 1 forks source link

App crashes on iOS #11

Closed roipeker closed 5 years ago

roipeker commented 5 years ago

Using debugger build or adhoc, after compile ipa with the provided ANE ( /native_extension/ane/VibrationANE.ane ) and the /Frameworks folder.

App can't be opened, crashes directly on device.

Using Intellij , iPhone7+, iOS 12.0, AIR 31.0.0.96

tuarua commented 5 years ago

Please provide the crash log.

Did you run get_ios_dependencies.sh also to pull the latest Frameworks ?

roipeker commented 5 years ago

I did run get_ios_dependencies.sh. Yet I'm having my doubts that my internet is really unstable lately, and maybe some files could be corrupted.

I'll get try again tomorrow from another location and keep you posted with the crash logs if it still crashes.

Thanks.

tuarua commented 5 years ago

This is how I package "Frameworks"

image

Let me know. I was a bit blind with the Haptic + Taptic testing as I don't have access currently to an iPhone, just iPads which have no vibration built in.

The ANE code is actually very light - so do have a read.

https://github.com/tuarua/Vibration-ANE/blob/master/native_library/apple/VibrationANE/VibrationANE/SwiftController.swift

roipeker commented 5 years ago

It was indeed my internet connection dude, corrupted files :(

Thanks! vibrate(id); ImpactFeedbackGenerator and NotificationFeedbackGenerator; works very well.

I couldn't make SelectionFeedbackGenerator to work though... I try adding some delays between "selectionChanged()" calls, but still, I get no feedback at all.

tuarua commented 5 years ago

Saw the problem. Grab latest ANE and ios_dependencies.zip (just run get_ios_dependencies.sh again)