Fix attempty
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>aps-environment</key>
|
||||
<string>development</string>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>group.com.wrenchboard.users.onesignal</string>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import UIKit
|
||||
import Capacitor
|
||||
import OneSignalFramework
|
||||
|
||||
@UIApplicationMain
|
||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
@@ -7,8 +8,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
var window: UIWindow?
|
||||
|
||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
||||
// Override point for customization after application launch.
|
||||
return true
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
func applicationWillResignActive(_ application: UIApplication) {
|
||||
|
||||
@@ -17,8 +17,8 @@ class NotificationService: UNNotificationServiceExtension {
|
||||
/* DEBUGGING: Uncomment the 2 lines below to check this extension is executing
|
||||
Note, this extension only runs when mutable-content is set
|
||||
Setting an attachment or action buttons automatically adds this */
|
||||
// print("Running NotificationServiceExtension")
|
||||
// bestAttemptContent.body = "[Modified] " + bestAttemptContent.body
|
||||
print("Running NotificationServiceExtension")
|
||||
bestAttemptContent.body = "[Modified] " + bestAttemptContent.body
|
||||
|
||||
OneSignalExtension.didReceiveNotificationExtensionRequest(self.receivedRequest, with: bestAttemptContent, withContentHandler: self.contentHandler)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user