-
-
Save sfmc-mobilepushsdk/7786aad4c87c177913209e2103f29ae7 to your computer and use it in GitHub Desktop.
This file contains 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
MarketingCloudSdk.init((Context) this, MarketingCloudConfig.builder() | |
// Other configuration values | |
.setUrlHandler(new UrlHandler() { | |
@Nullable @Override public PendingIntent handleUrl(@NonNull Context context, @NonNull String url, | |
@NonNull String urlSource) { | |
return PendingIntent.getActivity(context, 0, new Intent(Intent.ACTION_VIEW, Uri.parse(url)), PendingIntent.FLAG_UPDATE_CURRENT); | |
} | |
}) | |
.build((Context) this), (MarketingCloudSdk.InitializationListener) this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment