https://docs.getui.com/getui/mobile/ios/apns/ refer to this website
Create a P12 certificate and upload it to Firebase
Create Firebase with multiple server keys and use Testflight for notifications
Post
Replies
Boosts
Views
Activity
My system version is Big Sur 11.3.1. Please make sure you have enough storage space. After I uninstalled Xcode12, I installed Xcode-beta-13 and it works fine
After downloading, install the description file on the iPad, reboot, and you will receive the update of iPad OS15. Since the beta version is unstable, take a backup first. Updating iPad OS15
I wrote a separate agent module and it works fine. The combination is normal. It's normal in Xcode. Run the program to the simulator, or the real machine. There is only one agent module. The entire program cannot be displayed.
Very effective help
Thank you very much
import UIKit
import CoreData
@UIApplicationMain
class AppDelegate: UIResponder,UIApplicationDelegate{
func application(_ application:UIApplication,didFinishLaunchingWithOptions launchOptions:[UIApplication.LaunchOptionsKey:Any]?)-Bool{
//Cannot convert return expression of type 'Void' to return type 'Bool'
UNUserNotificationCenter.current().requestAuthorization(options: [.alert,.sound,.badge]){(granted,error)in
if granted{
print("User notifications are allowed.")
}else{
print("User notifications are not allowed.")
}
}
}
}
help
Thank you. This is a great help
I reported it to Apple, but I didn’t get a reply from Apple