-
[Offline push function](#Offline push function)
-
[Map function](#Map function)
Currently using the integrated solution.
1. Use Getui (https://getui.com/) in mainland China
iOS platform configuration: Make the corresponding iOS configuration according to its documentation. Then find the following files in the code and modify the corresponding iOS side key:
fileprivate let kGtAppId = ""
fileprivate let kGtAppKey = ""
fileprivate let kGtAppSecret = ""
2. Use FCM (Firebase Cloud Messaging) in overseas regions
According to the integration guide of FCM, replace the following files:
- GoogleService-Info.plist (iOS platform)
The current SDK design is that the display content of the push banner is directly controlled by the client. When sending a message, set the input parameter offlinePushInfo:
let offlinePushInfo = OfflinePushInfo(
title: "Fill in the title",
desc: "Fill in the description, such as the message content",
);
// If you do not customize offlinePushInfo, the title defaults to the app name, and the desc defaults to "You have received a new message"
According to actual needs, complete the corresponding client and server configurations to enable the offline push function.
Need to configure the corresponding AMap Key. Please refer to AMap Document for details. The code in the project needs to modify the following Key:
fileprivate let webKey = "your-web-key"
fileprivate let webServerKey = "your-web-server-key"
Once the configuration is complete, you can enable the map function.