-
Notifications
You must be signed in to change notification settings - Fork 61
Dialogs no longer work on iOS 8 #55
Comments
Also seeing this with iOS 8 beta 5. |
And it will not work until Adobe release an AIR version compatible with iOS 8 and recompile this ANE |
Thanks @esdebon - is there a bug being tracked by Adobe that I can upvote? |
Has anyone found a solution for this problem yet? Latest air SDK and iOS 8, dialogs still not showing |
When you say the latest SDK, you mean Adobe AIR Beta 15? |
Doing some research and it looks like this is caused by Apple deprecating the UIAlertView in favor of the UIAlertController class. Docs say UIAlertView is deprecated but I don't know what that means in Apple language. Most devs will deprecate in one version and remove it in the next major release. That is generally how Google handles their deprecations. I'm not overly familiar with Objective-C, but I am going to try to fix this next week. Overall, 21 instances of UIAlertView will need to be properly handled, from the looks of it. https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertController_class/ An SO question asking about how to handle this while maintaining backward compatibility: |
For the short term solution, any other dialogs extension can be use on iOS8? |
@raychan123 I searched yesterday for about a half hour and found nothing that wasn't built prior to the deprecation. If anyone knows of one, please post it. |
So that no any dialog extension can be support iOS8 in this moment? oh no |
Both Milkman Games and Distriqt have commercial ANEs, assuming they're up to date. |
Anyone can be confirm that the Distriqt version can be support iOS8? |
I just did some tests in Xcode 6 and iOS 8, and my original guess that it was due to UIAlertView being deprecated was incorrect. UIAlertView still works just fine. I'll keep looking |
hope can fix this issues this week |
I have found the replacement ANE can be work fine on iOS8: |
FWIW, I've confirmed that Distriqt's ANE works with iOS 8. |
I would donate to someone that could patch this to get it working. I used this in a big project and do not want to refactor ally code |
We think that the problem is not with the deprecated UIAlertView, because it should be still available in the sdk. Maybe it's a problem with showing up the alert. Can be a problem with the Air SDK or with layering of the views. Simple recompiling the project with AIR SDK 15 doesn't fix the problem. |
quick6black: I could look into it. |
are there any news? |
I'm not terribly familiar with dispatch_async usage but it appeared to me that inside of dismissWithButtonIndex (in NativeDialogControler) the dispatch_async(dispatch_get_main_queue() line was delaying just enough so that this function (called before creating each alert object) effectively destroys every alert you create right away. I did a quick conditional check for iOS8 here and removed the dispatch_async call when on iOS 8+ which seems to have fixed the problem for me. Hopefully someone more familiar with dispatch_async can shed some light on a cleaner fix... |
Would you be able to post your revision? |
Here's my revision of dismissWithButtonIndex found in NativeDialogControler.m...
Again this is a quick fix for my projects and isn't live on any of them yet. Honestly not sure why this function is used to internally clean preexisting dialogs as well as being exposed to the actionscript side. I'm a bit confused by those animated booleans being set to YES for the internal usage. Decided to change them to NO for iOS8 since I don't call this function from actionscript. |
Hi, @evilbert103 could you provide ANE file which built from your quick fix ? I'm sorry to be a begger, but I can not build it on my machine :< |
Hey @Unayung here's my fork: https://github.com/evilbert103/NativeDialogs Feel free to let me know if you have any issues with that. I run on a mac so that updated ANE was built using the previously provided Android jar. |
@evilbert103 thanks for the binaries. it's really great work 👍 |
I don't use the NativeDatePickerDialog in any of my projects sadly but it appears that's all written with deprecated code. As of iOS 8, UIActionSheet can no longer be subclassed nor can you add views to its hierarchy. So the non iPad version of that code would have to be completely rewritten using a UIView or possibly a UIAlertController. If you're interested in that I'd check out https://github.com/skywinder/ActionSheetPicker-3.0. This is basically a rewriting of the UIActionSheet functionality using UIViews that could be worked into the NativeDatePickerDialog system (which is the only system in NativeDialogs which made use of UIActionSheet). |
@evilbert103 really thanks man ! will have a good time fighting with DatePicker : ) |
@Unayung have you confirmed DatePicker on ios8 ? |
@wafj999 hi, it's still no luck : ( |
@evilbert103 Thank you for your "NativeDialogs.ane" version. I don't use the NativeDatePickerDialog, the other alerts work fine with this version and IOS8.1. |
I checked it using "NativeDialogs.ane" but still not working on IOS 8 specially "NativeAlertDialog" "NativePickerDialog" "NativeListDialog" please if anyone can help me with it I can pay him |
@bernardkh I could look into it |
@Neverbirth thx for your reply this is my personal mail [email protected] please give me yours in order to communicate |
any news with a full functional ANE ? :( |
Thank you dear, but we are on a deadline and we used this ANE extensively and we really need it to work with iOS 8 .. Do you have any suggestions ? |
I purchased an ANE at distriqt to solve my problem, considering that I I'm using corona now and so far I'm happy. Good luck. On Wednesday, December 10, 2014, wztechno [email protected] wrote:
|
Well Thank you for the advice but the problem now is time ! What about authors of this ANE are they replying anyhow ? |
He is not giving suport anymore. All the best, On Wednesday, December 10, 2014, wztechno [email protected] wrote:
|
Thank you epaneto |
@wztechno, NeverBirth updated this ANE to work with IOS 8, contact him. |
Do you have his email please for @Neverbirth |
I do but do not want to post it on the forum. Email me [email protected] and I can send it to you |
Thank you @quick6black Email is sent |
the extension needs to be compiled now for both arm7 and arm64 to be Universal. |
@evilbert103 Can you please recompile your code at https://github.com/evilbert103/NativeDialogs to support 64-bit iOS according to Apple's latest requirement |
I also need the 64 bits version ): |
@marchanddesable you are a bad seeker |
The dialogs are no longer working with the current version of iOS 8.
The text was updated successfully, but these errors were encountered: