🚴♂️
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
public class GatewaySecureActivity : AppCompatActivity() { | |
companion object{ | |
/** | |
* The HTML used to initialize the WebView. Should be the HTML content returned from the Gateway | |
* during the Check 3DS Enrollment call | |
*/ | |
val EXTRA_HTML = "com.mastercard.gateway.android.HTML" | |
/** |
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
private fun showNotification(remoteMessage: RemoteMessage) { | |
val intent = Intent(this, SplashActivity::class.java) | |
val pendingIntent = PendingIntent.getActivity(this, 123, intent, PendingIntent.FLAG_ONE_SHOT) | |
val channelId = getString(R.string.default_notification_channel_id) | |
val defaultSoundUri: Uri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION) | |
val notificationBuilder: NotificationCompat.Builder = | |
NotificationCompat.Builder(this, channelId) | |
.setSmallIcon(R.drawable.notification_icon) | |
.setContentTitle(remoteMessage.notification!!.title) | |
.setContentText(remoteMessage.notification!!.body) |