🚀 TestPushNotification🚀
示例
要运行示例项目,请先克隆仓库,然后在示例目录中运行 pod install
要求
安装
TestPushNotification可以通过CocoaPods获取。要安装它,只需将以下行添加到您的Podfile中
pod 'TestPushNotification'
🤞 用法🤞
let authKey = "{your auth key goes here}"
let fcmKey = ["c7igErTWSB0:APA91bFoYmSqQa-v-xZkpWRYvXWEfvE79fme4jVAQTTyhHjdFi6_Q9tP3uskevnnB2_5_WTeLkrCZyok2F_JFR3b2NgAoyEVCgwVWAgFcPZoRTZR5neaibqaTTgad4AyeOnew5sGEyHf"]
let data = NotificationData(title: "Karthik", body: "Hi, there this is test")
let pushData = PushNotificationData(authKey: authKey, fcmToken: fcmKey, notificationData: data)
let testPush = TestPushManager(pushData: pushData)
testPush.fire()
作者
karthikAdaptavant, [email protected]
许可证
TestPushNotification 在MIT许可证下可用。有关更多信息,请参阅LICENSE文件。