Skip to content
This repository was archived by the owner on Aug 9, 2019. It is now read-only.

Dialogs no longer work on iOS 8 #55

Open
jackwlee01 opened this issue Aug 19, 2014 · 47 comments
Open

Dialogs no longer work on iOS 8 #55

jackwlee01 opened this issue Aug 19, 2014 · 47 comments

Comments

@jackwlee01
Copy link

The dialogs are no longer working with the current version of iOS 8.

@scottwwh
Copy link

Also seeing this with iOS 8 beta 5.

@esdebon
Copy link

esdebon commented Aug 26, 2014

And it will not work until Adobe release an AIR version compatible with iOS 8 and recompile this ANE

@scottwwh
Copy link

scottwwh commented Sep 2, 2014

Thanks @esdebon - is there a bug being tracked by Adobe that I can upvote?

@iqontrol
Copy link

Has anyone found a solution for this problem yet? Latest air SDK and iOS 8, dialogs still not showing

@esdebon
Copy link

esdebon commented Sep 17, 2014

When you say the latest SDK, you mean Adobe AIR Beta 15?
Then report the bug:
http://labs.adobe.com/technologies/flashruntimes/air/

@jjanusch
Copy link

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/
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertView_Class/index.html#//apple_ref/occ/cl/UIAlertView

An SO question asking about how to handle this while maintaining backward compatibility:
http://stackoverflow.com/questions/24270435/uialertcontroller-if-ios8-otherwise-uialertview

@raychan123
Copy link

For the short term solution, any other dialogs extension can be use on iOS8?

@jjanusch
Copy link

@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.

@raychan123
Copy link

So that no any dialog extension can be support iOS8 in this moment? oh no

@scottwwh
Copy link

Both Milkman Games and Distriqt have commercial ANEs, assuming they're up to date.

@raychan123
Copy link

Anyone can be confirm that the Distriqt version can be support iOS8?

@jjanusch
Copy link

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

@raychan123
Copy link

hope can fix this issues this week

@raychan123
Copy link

I have found the replacement ANE can be work fine on iOS8:
https://github.com/freshplanet/ANE-Alert

@scottwwh
Copy link

FWIW, I've confirmed that Distriqt's ANE works with iOS 8.

@quick6black
Copy link

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

@ratfury
Copy link

ratfury commented Oct 1, 2014

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.

@Neverbirth
Copy link

quick6black: I could look into it.

@ratfury
Copy link

ratfury commented Oct 7, 2014

are there any news?

@evilbert103
Copy link

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...

@quick6black
Copy link

Would you be able to post your revision?

@evilbert103
Copy link

Here's my revision of dismissWithButtonIndex found in NativeDialogControler.m...

-(void)dismissWithButtonIndex:(int32_t)index{
    BOOL isIOS_8 = [[[UIDevice currentDevice] systemVersion] floatValue]>=8.0;
    if( isIOS_8 ) {
        [popover dismissPopoverAnimated:NO];
        [actionSheet dismissWithClickedButtonIndex:index animated:NO];
        [alert dismissWithClickedButtonIndex:index animated:NO];
        [tsalertView dismissWithClickedButtonIndex:index animated:NO];
        [sbAlert.view dismissWithClickedButtonIndex:index animated:NO];
    } else {
        dispatch_async(dispatch_get_main_queue(), ^{
            [popover dismissPopoverAnimated:YES];
            [actionSheet dismissWithClickedButtonIndex:index animated:YES];
            [alert dismissWithClickedButtonIndex:index animated:YES];
            [tsalertView dismissWithClickedButtonIndex:index animated:YES];
            [sbAlert.view dismissWithClickedButtonIndex:index animated:YES];
        });
    }
}

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.

@Unayung
Copy link

Unayung commented Oct 14, 2014

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 :<
thx in adv.

@evilbert103
Copy link

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.

@Unayung
Copy link

Unayung commented Oct 16, 2014

@evilbert103 thanks for the binaries. it's really great work 👍
but the thing is I got issue on NativeDatePickerDialog which did not display.
I'm just wondering if I can using the same logic you used in NativeDialogControler.m
to make it work ..

@evilbert103
Copy link

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).

@Unayung
Copy link

Unayung commented Oct 20, 2014

@evilbert103 really thanks man ! will have a good time fighting with DatePicker : )

@wafj999
Copy link

wafj999 commented Oct 27, 2014

@Unayung have you confirmed DatePicker on ios8 ?

@Unayung
Copy link

Unayung commented Oct 28, 2014

@wafj999 hi, it's still no luck : (

@Barendnu
Copy link

@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.

@bernardkh
Copy link

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

@Neverbirth
Copy link

@bernardkh I could look into it

@bernardkh
Copy link

@Neverbirth thx for your reply this is my personal mail [email protected] please give me yours in order to communicate

@wztechno
Copy link

any news with a full functional ANE ? :(

@wztechno
Copy link

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 ?

@epaneto
Copy link

epaneto commented Dec 10, 2014

I purchased an ANE at distriqt to solve my problem, considering that I
could not wait. Their extensions are not awesome but fixed the
problem,maybe it's the best option for you. After this I'll never use AIR
again for mobile apps. If Adobe wants to keep this as a great development
platform they should at least build their own extensions for basic native
UI.

I'm using corona now and so far I'm happy.

Good luck.

On Wednesday, December 10, 2014, wztechno [email protected] wrote:

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 ?


Reply to this email directly or view it on GitHub
#55 (comment)
.

@wztechno
Copy link

Well Thank you for the advice but the problem now is time ! What about authors of this ANE are they replying anyhow ?

@epaneto
Copy link

epaneto commented Dec 10, 2014

He is not giving suport anymore.
For real, you are spending more time waiting than you would just switching
ANE. Their method calls are very similar, you can solve all in 1 day.

All the best,
Epa

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 ?


Reply to this email directly or view it on GitHub
#55 (comment)
.

@wztechno
Copy link

Thank you epaneto

@quick6black
Copy link

@wztechno, NeverBirth updated this ANE to work with IOS 8, contact him.

@wztechno
Copy link

Do you have his email please for @Neverbirth

@quick6black
Copy link

I do but do not want to post it on the forum. Email me [email protected] and I can send it to you

@wztechno
Copy link

Thank you @quick6black Email is sent

@freddymx
Copy link

the extension needs to be compiled now for both arm7 and arm64 to be Universal.

@davee44
Copy link

davee44 commented Feb 18, 2015

@evilbert103 Can you please recompile your code at https://github.com/evilbert103/NativeDialogs to support 64-bit iOS according to Apple's latest requirement

@marchanddesable
Copy link

I also need the 64 bits version ):

@esdebon
Copy link

esdebon commented May 22, 2016

@marchanddesable you are a bad seeker

https://github.com/esdebon/NativeDialogs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests