Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast-PhoneGap-Plugin message not orientated properly on iOS devices #37

Closed
rahulsalvikar777 opened this issue Jun 16, 2015 · 11 comments
Closed

Comments

@rahulsalvikar777
Copy link

Please refer this link for issue
http://stackoverflow.com/questions/30865374/phonegap-toast-plugin-not-working-on-ios

@rynangeles
Copy link

for me, i was not able to display toast in my app

@EddyVerbruggen
Copy link
Owner

@rynangeles How are you using the plugin?

@rahulsalvikar777
Copy link
Author

Hi all, I push the demo code on github please refer the below link. https://github.com/rahulsalvikar777/toastPluginDemo.git

Steps for creating the application.

  1. I create my project in ionicframework
  2. I add ngcordova lib and follow the below links tutorials
    a) http://ngcordova.com/docs/plugins/toast/
    b) https://blog.nraboy.com/2014/09/show-native-toast-notifications-using-ionic-framework/
  3. In iOS platform, I check all the rotations and build/ run the code.

When you run the project on iOS device you can see the menu on left side, please select the browse menu and rotate the ios device and press any key. then you can see the issue

@rahulsalvikar777 rahulsalvikar777 changed the title PhoneGap Toast plugin not working on iOS Toast-PhoneGap-Plugin message not orientated properly on iOS devices Jun 19, 2015
@EddyVerbruggen
Copy link
Owner

Can't reproduce on my iPhone 6, perhaps I'm doing something wrong - see the vid.

landscape-toast

@rahulsalvikar777
Copy link
Author

May be....
I got same issue message not rotating :( .

Below steps which I use for reproduce that problem

  1. Select all Device orientation in XCode and then run code on device.

I am using 1) iPhone 4s and iOS 7.1.2 , 2) iPad ios 7.1.2

photo

@EddyVerbruggen
Copy link
Owner

Hmm, smells like an iOS7 issue.. do you have any iOS8 device you can test on?

@rahulsalvikar777
Copy link
Author

Woooo, It OS issue I test on simulator now. Its working properly. But still its not working on iOS 7. Thanks for help may be in next update this issue will be resolved. :)

@rahulsalvikar777 rahulsalvikar777 changed the title Toast-PhoneGap-Plugin message not orientated properly on iOS devices Toast-PhoneGap-Plugin message not orientated properly on iOS 7 devices Jun 19, 2015
@rahulsalvikar777 rahulsalvikar777 changed the title Toast-PhoneGap-Plugin message not orientated properly on iOS 7 devices Toast-PhoneGap-Plugin message not orientated properly on iOS devices Jun 19, 2015
@EddyVerbruggen
Copy link
Owner

Just reproduced this in the iOS 7 simulator as well, let me try to fix it..

@EddyVerbruggen
Copy link
Owner

Hi, please try the master branch, it should now be compatible with landscape on iOS 7.

@jcesarmobile
Copy link

changing
[self.superview.superview addSubview:toast];
to
[self.superview addSubview:toast];

seems to fix the issue, but might cause others

EDIT:Lol, you were faster

@EddyVerbruggen
Copy link
Owner

Lol

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

No branches or pull requests

4 participants