Skip to content

Commit

Permalink
fix sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
af-margot committed Jan 20, 2021
1 parent 4add332 commit c27100d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
26 changes: 13 additions & 13 deletions Classes/AppDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,19 @@ static void didResolveDeepLink(AppsFlyerXDeepLinkResult result){
ddl.append(t.second.asString().c_str());
ddl.append("\n");
}
auto currentScene = Director::getInstance()->getRunningScene();
auto child = currentScene->getChildByTag(1);
if (child != NULL)
currentScene->removeChildByTag(1);
auto size = Director::getInstance()->getVisibleSize();
Vec2 origin = Director::getInstance()->getVisibleOrigin();
auto myLabel = Label::createWithSystemFont(ddl.c_str(), "Arial", 6);
myLabel->setPosition(Vec2(origin.x + 80, origin.y + size.height - 180));
//myLabel->setHeight( origin.y + size.height - 180);
//myLabel->setHorizontalAlignment(cocos2d::TextHAlignment::CENTER);
currentScene->addChild(myLabel,1, 1);
}
}
auto currentScene = Director::getInstance()->getRunningScene();
auto child = currentScene->getChildByTag(1);
if (child != NULL)
currentScene->removeChildByTag(1);
auto size = Director::getInstance()->getVisibleSize();
Vec2 origin = Director::getInstance()->getVisibleOrigin();
auto myLabel = Label::createWithSystemFont(ddl.c_str(), "Arial", 6);
myLabel->setPosition(Vec2(origin.x + 80, origin.y + size.height - 180));
//myLabel->setHeight( origin.y + size.height - 180);
//myLabel->setHorizontalAlignment(cocos2d::TextHAlignment::CENTER);
currentScene->addChild(myLabel,1, 1);

}

Expand All @@ -143,10 +143,10 @@ bool AppDelegate::applicationDidFinishLaunching() {

AppsFlyerX::setIsDebug(true);
//AppsFlyerX::setMinTimeBetweenSessions(9);
AppsFlyerX::setAppsFlyerDevKey("<devKey>>");
AppsFlyerX::setAppsFlyerDevKey("<devkey>");

#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
AppsFlyerX::setAppleAppID("<appid>>");
AppsFlyerX::setAppleAppID("<appid>");
// AppsFlyerX::waitForATTUserAuthorizationWithTimeoutInterval(60);

#endif
Expand Down
15 changes: 8 additions & 7 deletions Classes/AppsFlyer/libAppsFlyer/AppsFlyerLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -611,20 +611,21 @@ NS_SWIFT_NAME(logEvent(name:values:completionHandler:));
parameters are not appended to the url.
@param containsString string to check in URL.
*/
@param parameters NSDictionary, which containins parameters to append to the deeplink url after it passed validation.
*/
- (void)appendParametersToDeepLinkingURLWithString:(NSString *)containsString
parameters:(NSDictionary<NSString *, NSString*> *)parameters
NS_SWIFT_NAME(appendParametersToDeeplinkURL(contains:parameters:));

/**
- (void)addPushNotificationDeepLinkPath:(NSArray<NSString *> *)deepLinkPath;
*/
@param deepLinkPath an array of strings which contains keys to search for deeplink in payload.

to resolve deeplink from push notification payload `userInfo`.
Adds array of keys, which are used to compose key path
to resolve deeplink from push notification payload `userInfo`.
@param deepLinkPath an array of strings which contains keys to search for deeplink in payload.
*/
- (void)addPushNotificationDeepLinkPath:(NSArray<NSString *> *)deepLinkPath;

@end

NS_ASSUME_NONNULL_END

0 comments on commit c27100d

Please sign in to comment.