한국어

스마트폰앱

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


2019.04.27 21:29:15 (*.214.126.152)
6194


https://codeburst.io/unique-identifier-for-the-ios-devices-590bb778290d



https://nshipster.com/uuid-udid-unique-identifier/




Unique Identifier for the iOS Devices

Why to Identify devices?

  • Did this device already consume a free trial?
  • Has this device paid for content but not linked that purchase to an account?
  • Was this device previously enrolled for offer by user?
What different approaches, we are aware and using it in our implementation?

1. Get a unique device ID and store that on the server. Since UDIDs are no longer allowed, that’s out.

[[UIDevice currentDevice] uniqueIdentifier]

2. Use something like the advertising ID. Trouble is, user can reset that and get a new one. Used only for serving advertisement.

3. Use something like vendor identifier. Uniquely identifies the device to the app’s vendor. The value changes when user deletes all the vendor’s apps from the device and reinstalls one or more of them.

4. Write a unique ID into the keychain or user preferences. User can delete app, reinstall, and redeem item again.

NSUUID *UUID = [NSUUID UUID];
NSString* stringUUID = [UUID UUIDString];

5. Rely on user login. But then the user can create a dummy account and keep redeeming multiple times.

To get more information you can check http://nshipster.com/uuid-udid-unique-identifier/

What’s new?

Apple has come up with the DeviceCheck framework in iOS 11.

Access per-device, per-developer data that your associated server can use in its business logic.
1*nofUfSLJhh4fXkNphrUZtA.png
Two bits of data

Using DeviceCheck API’s, in combination with a server-to-server APIs, developer can set and query two bits of data per device. It will also maintain the user privacy, by not disclosing any user or device information, which is the priority point for every Apple user and most point of concern of every mobile user.

NOTE: Developer are still responsible for keeping track of whether users has already redeemed offers that you have provided.

Use DeviceCheck APIs to ensure that this is a device which has been aligned to one user so that same device cannot be used with different users to redeem the promotions/offers.

Your app should use the DeviceCheck APIs to generate an ephemeral token that identifies a device. Your associated server combines this token with an authentication key that you receive from Apple and uses the result to request access to the per-device bits.

Let’s go steps by steps,

1. Query for token — Use DCDevice class has a generateToken method which will generate the token.

2. Send token to app server — Send received token to your application server.

3. Set two bits — Application server will responsible for sharing this token and set the bit value.

1*0TTSnnZMgD-ximfmI6GSqw.png
Initiate workflow

{

“device_token” : “wlkCDA2Hy/CfMqVAShslBAR/0sAiuRIUm5jQg0a…”

“transaction_id” : “5b737ca6-a4c7–488e-b928–8452960c4be9”,

“timestamp” : 1487716472000,

“bit0” : true,

“bit1” : false

}

4. Delete Application — Delete the application from device

5. Reinstall Application

6. Query for token

7. Send token to app server

8. Query two bit — Request to Apple to query bit state

{

“device_token” : “wlkCDA2Hy/CfMqVAShslBAR/0sAiuRIUm5jQg0a…”

“transaction_id” : “5b737ca6-a4c7–488e-b928–8452960c4be9”,

“timestamp” : 1487716472000

}

9. Response from Apple server 

{

“bit0” : true,

“bit1” : true,

“last_update_time”: “2017–06”

}

1*xGNZqFc-9nfkDps3GHM0rQ.png
After Delete & Reinstall of the application

//***************************************************************//

Class: DCDevice
This class represent the device and has only three methods as mentioned below,
class var current: DCDevice
The device for which to perform the check.
var isSupported: Bool
A Boolean value indicating whether the DeviceCheck APIs are available on the current device.
func generateToken(completionHandler: (Data?, Error?) -> Void)
Generates a token that identifies the current device.
Generate a new device token that can be used to get/set the persistent bits for this device. This call generates a new value every time.

//***************************************************************//

Reference:

WWDC 2017 — Session 702 — iOS, macOS, tvOS, watchOS

https://developer.apple.com/videos/play/wwdc2017/702/

https://developer.apple.com/documentation/devicecheck/accessing_and_modifying_the_per_device_data

번호
제목
글쓴이
85 카메라 & 마이크 퍼미션 요청 #12
admin
2020-01-18 3966
84 개발자를 위한 OS X(>= Catalina) 설정
admin
2020-01-18 3865
83 TableView! 테이블 뷰란(UITableView)?
admin
2020-01-18 5370
82 NSString 문자열 다루기 길이 자르기 대치 비교 붙이기 추출
admin
2019-06-15 6281
81 Xcode objective c 설명 쉽게이해 간단 쉽게공부하기 프로그램 거져 날로 먹기 사이트
admin
2019-06-15 4537
80 Xcode objective c 변수 선언 전달
admin
2019-06-15 4199
79 Undefined symbols _AudioServicesPlaySystemSound 에러 조치방법
admin
2019-06-14 4515
78 Keychain error undefined symbol: _kSecReturnData 등 에러 발생 조치
admin
2019-06-14 4551
77 KeychainItemWrapper.h KeychainItemWrapper.m 다운로드 키체인 소스코드 file
admin
2019-06-14 4453
76 iOS objective c. Button. Label image color setting
admin
2019-06-10 4413
75 아이폰 앱 앱스토어 등록 과정 순서 How To Submit An App To App Store
admin
2019-06-08 5177
74 Objective-C NSString 관련 메소드 다루기
admin
2019-06-06 4360
73 ios – NSDictionary 모든 키 명령
admin
2019-06-03 4213
72 keychain UUID 키체인 저장 사용 코딩
admin
2019-05-17 4557
71 uuid를 최초로 생성하고 keychain에 저장시켜주는 방법
admin
2019-05-17 15532
70 Apple Developer Documentation
admin
2019-05-17 4185
69 iOS ) View/레이아웃 업데이트 관련 메소드
admin
2019-05-17 4712
68 Java 쓰다가 Objective-C 문자열 다루기
admin
2019-05-16 4237
67 InAppSettingsKit 앱셋팅 코딩 오픈 소스 사용 설명
admin
2019-05-06 4698
66 iOS Settings Bundle Creation 아이폰 앱개발 셋팅 값 설정 메뉴 생성
admin
2019-05-06 4925
65 iOS 설정 번들 구현 설정 환경 구성하기 Xcode objective c
admin
2019-05-05 6278
64 Implementing an iOS Settings Bundle
admin
2019-05-05 4589
63 settings.bundle의 plist 설정 키값저장 여러가지
admin
2019-05-04 4670
62 키-밸류 코딩(KVC : Key-Value Coding) 키값 저장 및 가져오기
admin
2019-05-04 4584
61 [iOS]Key Value Coding, Key Value Observing 키값 저장 가져오기
admin
2019-05-04 4838
60 How to set value for object in objective c 셋팅 값 저장 하기
admin
2019-05-04 4527
59 iOS Swipe Gesture 정리
admin
2019-05-04 11531
58 iOS Objective-C로 하는 비동기 처리
admin
2019-05-03 4370
57 Objective-C 코드를 통한 Initial 뷰 지정 및 화면 전환하기
admin
2019-05-02 6570
56 아이폰 세로모드 Portrait vs 가로 모드 Landscape xcode objective c 동영상
admin
2019-05-02 5923