Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit 4e4ce79

Browse files
committed
Send Notifications Events inside of array; Refactoring the Code
1 parent a90a797 commit 4e4ce79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/ios/AppDelegate+Geofencing.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ -(void) locationManager:(CLLocationManager *)manager didExitRegion:(CLRegion *)r
179179
[parsedData setValue:@"true" forKey:@"openedFromNotification"];
180180
NSMutableDictionary *userInfoDici = [[NSMutableDictionary alloc]init];
181181
[userInfoDici setValue:@"outside" forKey:@"state"];
182-
182+
183183
NSError * err;
184184
NSData * jsonData = [NSJSONSerialization dataWithJSONObject:parsedData options:0 error:&err];
185185
NSString * myString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
@@ -194,4 +194,4 @@ -(void) locationManager:(CLLocationManager *)manager didExitRegion:(CLRegion *)r
194194
}
195195
}
196196
}
197-
@end
197+
@end

Diff for: src/ios/GeofencePlugin.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func log(message: String){
136136
if let uiNotification = notification.object as? UILocalNotification {
137137
if let notificationData = uiNotification.userInfo?["geofence.notification.data"] as? String {
138138
let data = notificationData
139-
let js = "setTimeout(geofence.onTransitionReceived(" + data + "),0)"
139+
let js = "setTimeout(geofence.onTransitionReceived([" + data + "]),0)"
140140

141141
evaluateJs(js)
142142
}

0 commit comments

Comments
 (0)