This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var nativeAd = FlurryAdNative(space:"staticAds") | |
| var nativeAds: [FlurryAdNative] = [] | |
| override func viewDidLoad() { | |
| super.viewDidLoad(); | |
| for _ in 1...5 { | |
| nativeAd?.adDelegate = self; | |
| nativeAd?.viewControllerForPresentation = self; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DeeplinkTestActivity extends AppCompatActivity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| // get the data from the intent. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| public boolean onNotificationClicked(FlurryMessage flurryMessage) { | |
| // NOTE: THIS METHOD WILL ONLY BE CALLED IF FLURRY HANDLED onNotificationReceived callback | |
| // determine if you'd like to handle the clicked notification yourself or not | |
| boolean handled = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <activity | |
| android:name=".DeeplinkTestActivity"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.VIEW" /> | |
| <category android:name="android.intent.category.DEFAULT" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void initializeFlurry() { | |
| ... | |
| // pass Flurry the default icon id, and background color | |
| int notificationIcon = getNotificationIcon(); | |
| FlurryMarketingOptions flurryMarketingOptions = new FlurryMarketingOptions.Builder() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new FlurryAgent.Builder() | |
| ... | |
| .withModule(marketingModule) | |
| .withIncludeBackgroundSessionsInMetrics(false) | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // define channel attributes (name, description, and id) | |
| public static final String NOTIFICATION_CHANNEL_ID = "SomeChannelId" | |
| public static final String NOTIFICATION_CHANNEL_NAME = "UserFacingChannelName" | |
| public static final String NOTIFICATION_CHANNEL_DESCRIPTION = "User facing description of the channel" | |
| // create notification channel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| compile ‘com.google.firebase:firebase-core:X.Y.Z’ | |
| compile ‘com.google.firebase:firebase-messaging:X.Y.Z’ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //replace X.Y.Z with the latest version of the Flurry SDK version | |
| compile “com.flurry.android:marketing:X.Y.Z@aar” | |
| // required to use flurry marketing | |
| compile “com.flurry.android:analytics:X.Y.Z@aar” |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /\* | |
| \* This method will only be called whenever a Flurry notification is received, regardless of | |
| \* whether app is in foreground or in background. To determine app | |
| \* state, you can either track it yourself or call FlurryMessaging.isAppInForeground | |
| \*/ |