Today Extension widget freezes when the main app is updated - ios

I am suffering from Today Extension freezing issue when the main app is updated. In detail, I recently found that Today Extension freezes after updating the main app from Crashlytics Beta service. After that, all of touchable things like a button does not work. I tried to reinstall the widget by setting menu supported by Today but failed.
The only way to solve this symptom is rebooting iPhone device. You know, however, this is not proper solution.
What makes the widget freeze after updating a main app?

Related

Flutter Module Embedded in native IOS displaying white screen when comes to Foreground from Background after long period of time

We are currently facing an issue with Flutter module embedding, specifically in iOS. We are embedding a flutter module into an existing native iOS application application using plugin frameworks in Xcode and Flutter framework with CocoaPods. We are using FlutterAppDelegate by creating a FlutterAppDelegate subclass of AppDelegate and initializing the FlutterEngine. Then we initialize a FlutterViewController using this engine and push it into the navigation controller. Everything is working fine with no issues observed.
The problem
When app stays in the background for a long period of time and then is brought back to the foreground, the flutter view is not visible and only a white screen is displayed. This white screen displays instantly and never restores. The only way to resolve it would be to manually kill the app by dismissing it from the App Switcher.
Good to mention; we tested this many times with test builds and only face the issue sparingly. Also, we haven’t been able to reproduce it in the simulator
What we are tried
We tried to refresh the Flutter view from inside the Flutter code by using a Flutter channel once app comes to the foreground, but this did not prove to be a solution.
We tried to remove the FlutterViewController, remove the Flutter engine and then reinitialize both, just like it is done in a regular app launch, but this did not work either.
We are reaching out to see if anyone can provide us with some lights on how to tackle this issue.
The iOS native app is developed in Objective-C and runs in iOS 13+ devices, we are using Xcode 14.2, Flutter 3.3.10 and Dart 2.18.6

Black screen on launch when migrating to SwiftUI application flow

I have done all of the refactoring to migrate from SceneDelegate to using a SwiftUI App and Scene with WindowGroup. I noticed that when the app is updated from the previous version, the app launches to a black screen, and you can't do anything with it. No matter how many times you quit and relaunch the app, nothing is navigable. I can log something in the init function of the App struct, but not in the onAppear modifier.
Uninstalling the app and installing it fresh works fine, but I don't want users to have to do this (I verified that this issue also happens when updating from my released app to a TestFlight beta).
The best way to get around this seems to be to leave the info.plist configuration that tells it to look for the SceneDelegate class (UISceneDelegateClassName), but delete the scene delegate. This will cause warnings in the console on launch, but the black screen issue will stop happening.

Widget in the app not appearing in the device?

We have a problem with adding the widget to the screen.
Our app has 2 widgets and app is live in AppStore.
The problem that some users can see only 1 widget (randomly, and using the newest version of the app), some see both widgets. It is hard to debug as I see both widgets on my device.
Happened on iPhone 6S iOS 14, iPhone 11 iOS 14. I guess there are more users as well who can't see these widgets.
Any known issues?
So I found the reason, so in future, if anyone has the same issues, might help:
Apple for today has some bugs related to the WidgetKit. If you want to see the widget in the widget menu, you must first open the app (after updating or installing) and then put the app to the background or kill the app
Now you are able to see the widget in the widget menu

Is there a way to solve the iOS 14 Widget flicker issue?

I'm experiencing a strange graphic issue (flickering) for iOS 14 widgets on the Home Screen and also in the Widget Gallery. The problem seems to occur after an app update gets installed. During development I thought this is a problem with the iOS Simulator, but now users reporting this issue, after I released an app update.
Was someone experiencing the same problems? Is there a fix for it or is it a bug from Apple?
Here are 2 videos showing the problem. Once on the Home Screen and once in the Widget Gallery. Home Screen flickering
Widget Gallery flickering
I’m having the same issue. “Color Widgets” flickers and it’s irritating at times.
This is an issue with iOS 14.0. (This issue was there in the betas, not sure why apple didn’t fix it)
I guess Apple will get it fixed it in the next iOS update since a lot of users are complaining.
Seems iOS 14 issue but while development you can avoid this by removing Widget from home screen before adding new version in simulator/device.

iOS 8 Today Extension Widget only appears on iPhone after rebooting

I have created a working iOS8 app extension widget for my app. In the simulator it appears by pulling down Notification Center and clicking edit and adding the widget, however if I compile my app to my iPhone 5S, the widget does not appear in the Notification Center today view until I after I reboot. Each time I compile to my phone I have to reboot again before seeing my widget and re-add it. After rebooting my phone the widget always shows up as expected but before rebooting it is like it does not exist.
Does anybody know why this might be happening? It sure is tedious rebooting after each compile.
This is a known issue in Beta 4 and hopefully will be addressed soon.
After updating a previously installed Today extension, the extension
may no longer launch. (17241004)
Workaround: Reboot the iOS device. (source)

Resources