-
Notifications
You must be signed in to change notification settings - Fork 115
App orientation is locked but the LNNotification rotates #36
Comments
I have put this in LNNotificationBannerWindow but i know it will overwrite on the pods update for the fixes you may do to improvise this component. -(UIInterfaceOrientationMask)supportedInterfaceOrientations
Can we have a handle outside to lock or access this. |
How do you lock your the orientation of your app? Have you set the correct orientation in the app plist? Another option is to implement I am not sure how to solve this. Each window allows its controller stack to determine the allowed orientation. So I could query the main window's allowed orientation, but this is incorrect, as there may be multiple windows alive, each with different supported orientations. Another option is to display notifications only in the orientation the interface was at the time of presentation. I don't like this because the experience suffers for all other applications where rotation is supported. |
Hello LeoNatan, I have implemented the stack in every controller to past the code that will determine what orientation is supported in the view controller. `
Also the customised navigation controller have this code.
As i have some view controller that support both orientation so the above APPDelegate fix is not good. Please suggest me some solution over this. |
No my few pic gallery full screen views are supporting both orientation hence I can't use the settings above as u mentioned |
Hello LeoNatan,
I have used this in my Live app and currently facing some issues.
Our entire app is locked to Portrait orientation but the LNNotification gets rotated.
Ive used the pods and hence if I update he Pods then the code will be overwritten by the latest for the changes I make.
Can you provide a function to pass the orientation locked and Type (Landscape / Portrait) while registering this LNNotification View.
The text was updated successfully, but these errors were encountered: