iOS Uninstall Tracking Setting
μ± μμ μΆμ μ Airbridge iOS SDK
v1.13.0
μ΄ν λ²μ λΆν° μ¬μ© κ°λ₯ν©λλ€.
μ€μ
μμ΄λΈλ¦Ώμ§ SDK μ Uninstall tracking κΈ°λ₯μ Silent push notification μ νμ©νμ¬ κ΅¬νλ©λλ€. κ·Έλμ μ΄ κΈ°λ₯μ μ¬μ©νκΈ° μν΄ μ±μμ Silent push notification μ΄ λμλλλ‘ App Identifier μ€μ λ° Capabilities μΆκ°, κ·Έλ¦¬κ³ Silent push notification μ΄ μ±μ μ λ¬λμμ λ Uninstall tracking μ μν κ²μ΄λΌλ©΄ 무μνλ μ½λ μΆκ°κ° νμν©λλ€.
νλ‘μ νΈ μ€μ
App Identifier μμ Push Notification μΌκΈ°
- https://developer.apple.com/account/resources μ
Identifiers
λ‘ μ΄λν΄ μ£ΌμΈμ. - Uninstall Tracking νκ³ μνλ μ±μ
Identifier
λ₯Ό ν΄λ¦νμ¬Push Notifications
λ₯Ό 체ν¬ν΄ μ£ΌμΈμ.
Key μμ Push Notification μΌκΈ°
- https://developer.apple.com/account/resources μ
Keys
λ‘ μ΄λν΄ μ£ΌμΈμ. - μ¬μ©νλ Key λ₯Ό edit νμ¬
Apple Push Notification service
λ₯Ό 체ν¬ν΄ μ£ΌμΈμ.
μ¬μ©νλ Key κ° μλ κ²½μ°
+
λ²νΌμ λλ¬ μλ‘ μμ±νκ³p8
μ λ€μ΄λ‘λ ν΄μ£ΌμΈμ.
App μ 보 λ±λ‘
App ID Prefix λ° Bundle ID λ±λ‘
- https://developer.apple.com/account/resources μ
Identifiers
λ‘ μ΄λν΄ μ£ΌμΈμ. - Uninstall Tracking νκ³ μνλ App μ
Identifier
λ₯Ό ν΄λ¦ν΄ μ£ΌμΈμ. - ν΄λΉ App μ
App ID Prefix
μBundle ID
λ₯Ό νμΈν μ μμ΅λλ€.
Key μ p8 μ
λ‘λ
- https://developer.apple.com/account/resources μ
Keys
λ‘ μ΄λν΄ μ£ΌμΈμ. - μ¬μ©νλ
Key
λ₯Ό ν΄λ¦ν΄ μ£ΌμΈμ. - ν΄λΉ
Key
μKey ID
μp8
μ νμΈν μ μμ΅λλ€.
p8
μ ν΄λΉ Key μ΅μ΄ μμ±μμλ§ λ€μ΄λ‘λ κ°λ₯ν©λλ€.
App μ€μ
Capabilities μΆκ°
- Xcode > Project νμΌ > Signing & Capabilities λ‘ μ΄λν΄μ£ΌμΈμ.
+ Capability
λ²νΌμ ν΄λ¦ν΄μ£ΌμΈμ.Background Modes
μPush Notifications
λ₯Ό μΆκ°ν΄μ£ΌμΈμ.Background Modes
μRemote notifications
λ₯Ό 체ν¬ν΄μ£ΌμΈμ.
Slient Push Notification μ€μ
μ±μ΄ μ€νλ λ, κΈ°μ‘΄μ Push Notification μ μ¬μ©νκ³ μμ§ μμλ€λ©΄ registerForRemoteNotifications
ν¨μλ₯Ό νΈμΆν΄ μ£ΌμΈμ.
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool
{
...
UIApplication.shared.registerForRemoteNotifications()
...
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[UIApplication.sharedApplication registerForRemoteNotifications];
return YES;
}
APNS Push Token μ μ‘
APNS Push Token μ΄ μμ±λμμ λ, ν΄λΉ ν ν°μ registerPushToken
ν¨μλ₯Ό νΈμΆνμ¬ SDK μ μ λ¬ν΄μ£ΌμΈμ.
func application(_ application: UIApplication,
didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data)
{
AirBridge.registerPushToken(deviceToken)
}
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
[AirBridge registerPushToken:deviceToken];
}
μμ μΆμ μ© Silent push notification 무μ
μμ μΆμ μ© Silent push notification μ΄ μ λ¬λμμ λ, μλ μ½λμ κ°μ΄ 무μν΄μ£ΌμΈμ.
func application(_ application: UIApplication,
didReceiveRemoteNotification userInfo: [AnyHashable : Any],
fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void)
{
if userInfo["airbridge-uninstall-tracking"] as? Bool == true {
return;
}
...
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
if ([userInfo[@"airbridge-uninstall-tracking"] boolValue] == YES) {
return;
}
...
}
Troubleshooting
λͺ¨νΌμ΄μ€ Push SDK Troubleshooting guide
λͺ¨νΌμ΄μ€ Push SDK Troubleshooting guide: λ§ν¬
Updated over 1 year ago