關(guān)于代理商模板
超值服務(wù)提供卓越產(chǎn)品
APP發(fā)布上架應(yīng)用商店基本流程圖
APP發(fā)布上架應(yīng)用商店基本流程圖
ios sdk集成
ios sdk集成圖
1.首先我們先下載iOS SDK
2.然后導(dǎo)入QQ305710439幫您定制提供的SDK文件夾到你的項(xiàng)目
3.最后代碼集成
當(dāng)應(yīng)用首次安裝打開(kāi)時(shí),你的ios sdk會(huì)收到網(wǎng)頁(yè)端通過(guò)js sdk傳來(lái)的參數(shù)。
Swift
Objective—C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {ViewController *vc = [[ViewController alloc]init];self.window.rootViewController = vc;//初始化OpenInstall[OpenInstallSDK setAppKey:@"orx4hy" withLaunchOptions:launchOptions withDelegate:self];[self.window makeKeyAndVisible];return YES;} //通過(guò)OpenInstall 獲取自定義參數(shù)。數(shù)據(jù)為空時(shí),也會(huì)回調(diào)此方法,方便開(kāi)發(fā)者靈活處理。- (void)getInstallParamsFromOpenInstall:(NSDictionary *) params withError: (NSError *) error { if (!error) { NSLog(@"OpenInstall 自定義數(shù)據(jù):%@", [params description]); if (params) { NSString *paramsStr = [NSString stringWithFormat:@"%@",params]; UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"安裝參數(shù)" message:paramsStr preferredStyle: UIAlertControllerStyleAlert]; [alert addAction:[UIAlertAction actionWithTitle:@"確定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { }]]; //彈出提示框(便于調(diào)試,調(diào)試完成后刪除此代碼) [self.window.rootViewController presentViewController:alert animated:true completion:nil]; } } else { NSLog(@"OpenInstall error %@", error); }}
4H5頁(yè)面集成JS SDK
1下載iOS SDK
2導(dǎo)入iOS SDK文件夾到你的項(xiàng)目
3集成代碼
Swift
Objective—C
//通過(guò)OpenInstall獲取渠道參數(shù)(包括渠道編號(hào)和渠道自定義參數(shù))。數(shù)據(jù)為空時(shí),也會(huì)回調(diào)此方法,方便開(kāi)發(fā)者靈活處理。c 為渠道編號(hào),d為渠道自定義參數(shù)- (void)getChannelInstallParamsFromOpenInstall:(NSDictionary *) params withError: (NSError *) error { if (!error) { NSLog(@"OpenInstall 渠道參數(shù) = %@", [params description]); if (params) { NSString *paramsStr = [NSString stringWithFormat:@"%@",params]; UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"渠道安裝參數(shù)" message:paramsStr preferredStyle: UIAlertControllerStyleAlert]; [alert addAction:[UIAlertAction actionWithTitle:@"確定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { }]]; //彈出提示框(便于調(diào)試,調(diào)試完成后刪除此代碼) [self.window.rootViewController presentViewController:alert animated:true completion:nil]; } } else { NSLog(@"OpenInstall error %@", error); }}
4.控制中心—添加渠道(如果是自定義渠道頁(yè)面需要集成js sdk)
5.拿到生成的渠道鏈接和二維碼進(jìn)行投放
一鍵跳轉(zhuǎn)分跳轉(zhuǎn)到AppStore 和跳轉(zhuǎn)到已安裝的App,通過(guò)Universal link 可以實(shí)現(xiàn)微信一鍵盤(pán)跳轉(zhuǎn)到已安裝App,通過(guò)應(yīng)用寶微下載可以實(shí)現(xiàn)微信一鍵跳轉(zhuǎn)到AppStore。
微信跳轉(zhuǎn)已安裝APP:
Apple 推出通用鏈接:一種能夠方便的通過(guò)傳統(tǒng) HTTP 鏈接來(lái)啟動(dòng) APP, 使用相同的網(wǎng)址打開(kāi)網(wǎng)站和 APP。同時(shí)支持微信里面跳轉(zhuǎn)APP。
1.配置developer.apple.com的相關(guān)信息
登錄https://developer.apple.com,選擇Certificate, Identifiers & Profiles,選擇相應(yīng)的AppID,開(kāi)啟Associated Domains
2.配置Xcode
在Xcode中選擇相應(yīng)的target,點(diǎn)擊Capabilities tab,開(kāi)啟Associated Domains,在里面添加openinstall的域名(applinks:xx.openlink.cc)
代碼集成
3.代碼集成
Swift
Objective—C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {ViewController *vc = [[ViewController alloc]init];self.window.rootViewController = vc;//初始化OpenInstall[OpenInstallSDK setAppKey:@"orx4hy" withLaunchOptions:launchOptions withDelegate:self];[self.window makeKeyAndVisible];return YES;}//ios9以下 URI Scheme 實(shí)現(xiàn)深度鏈接技術(shù)-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ //判斷是否通過(guò)OpenInstall URL Scheme 喚起App if ([[url description] rangeOfString:@"openlink.cc"].location != NSNotFound) { return [OpenInstallSDK handLinkURL:url]; }else{ //自行處理; return YES; }}//iOS9以上 URL Scheme 實(shí)現(xiàn)深度鏈接技術(shù)- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(nonnull NSDictionary *)options{ //判斷是否通過(guò)OpenInstall URL Scheme 喚起App if ([[url description] rangeOfString:@"openlink.cc"].location != NSNotFound) { return [OpenInstallSDK handLinkURL:url]; }else{ //自行處理; return YES; }}//Universal Links 通用鏈接實(shí)現(xiàn)深度鏈接技術(shù)- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler{ //判斷是否通過(guò)OpenInstall Universal Links 喚起App if ([[userActivity.webpageURL description] rangeOfString:@"openlink.cc"].location != NSNotFound) { return [OpenInstallSDK continueUserActivity:userActivity]; }else{ //自行處理; return YES; }}//已經(jīng)安裝app 被喚醒時(shí)獲取參數(shù)(如果是通過(guò)渠道頁(yè)面喚醒a(bǔ)pp時(shí),會(huì)返回渠道編號(hào)),c 為渠道編號(hào),d為渠道自定義參數(shù)- (void)getWakeUpParamsFromOpenInstall: (NSDictionary *) params withError: (NSError *) error{ NSLog(@"OpenInstall 喚醒參數(shù):%@",params ); if(params){ if (params) { NSString *paramsStr = [NSString stringWithFormat:@"%@",params]; UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"喚醒參數(shù)" message:paramsStr preferredStyle: UIAlertControllerStyleAlert]; [alert addAction:[UIAlertAction actionWithTitle:@"確定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { }]];//彈出提示框(便于調(diào)試,調(diào)試完成后刪除此代碼) [self.window.rootViewController presentViewController:alert animated:true completion:nil]; } }}
微信跳轉(zhuǎn)AppStore:
申請(qǐng)應(yīng)用寶微鏈接
控制中心配置應(yīng)用寶微鏈接
H5頁(yè)面集成Js sdk
準(zhǔn)備
開(kāi)發(fā)者賬號(hào)
完工的項(xiàng)目
上架步驟
一、創(chuàng)建App ID
二、創(chuàng)建證書(shū)請(qǐng)求文件 (CSR文件)
三、創(chuàng)建發(fā)布證書(shū) (CER)
四、創(chuàng)建Provisioning Profiles配置文件 (PP文件)
五、在App Store創(chuàng)建應(yīng)用
六、打包上架
大家都愛(ài)問(wèn)什么是 ios Universal Links?
Apple 推出通用鏈接:一種能夠方便的通過(guò)傳統(tǒng) HTTP 鏈接來(lái)啟動(dòng) APP, 使 用相同的網(wǎng)址打開(kāi)網(wǎng)站和 APP。 當(dāng)你的應(yīng)用支持通用鏈接,iOS9 之后 , 用戶(hù)可以點(diǎn)擊一個(gè)鏈接跳轉(zhuǎn)到你的網(wǎng)站,并獲得無(wú)縫重定向到您安裝的應(yīng)用程序,而無(wú)需通過(guò) Safari 瀏覽器。如果你的應(yīng)用不支持的話(huà),點(diǎn)擊鏈接將會(huì)用 Safari 來(lái)打開(kāi)。
什么是應(yīng)用寶微下載?
微下載是為移動(dòng)應(yīng)用提供的一條騰訊官方授權(quán)的下載推廣鏈接,可在微信、手機(jī)QQ、QQ空間、瀏覽器等多場(chǎng)景實(shí)現(xiàn)一鍵下載安裝,大大提升開(kāi)發(fā)者分享營(yíng)銷(xiāo)的下載轉(zhuǎn)化率。
使用通用鏈接后App右上角的openlink.cc 是什么?
使用 Universal Links 后 就會(huì)在App 右上角顯示這個(gè)鏈接。
用戶(hù)點(diǎn)擊App右上角的openlink.cc后會(huì)有什么結(jié)果?
通用鏈接將不會(huì)直接跳轉(zhuǎn)App了,會(huì)顯示通用鏈接對(duì)應(yīng)網(wǎng)頁(yè)。