applicationdidbecomeactive not called iOS swift
Problem:
I want to remove the badge number to 0 while launch.I tried in applicationdidbecomeactive method.But it was not called in my app while launch.
Solution:
func sceneWillEnterForeground(_ scene: UIScene) {
DispatchQueue.main.asyncAfter(
UIApplication.shared.applicati
}
}
In scene delegate class you have to call the above function and you can achieve that.
Comments
Post a Comment