AnchorFreePartner / hydrasdk-demo-android

Hydra VPN SDK demo app for Android
https://developer.anchorfree.com/
60 stars 31 forks source link

Notification #11

Closed Alex2105 closed 4 years ago

Alex2105 commented 5 years ago

Hello!!! How clear notification message in Hydra?

timoshenkoav commented 5 years ago

Hello Which notification message do you want to clear?

Alex2105 commented 5 years ago

When I started the application, I create and initialize HydraSdk in Application, I add a notification during initialization (HydraSdk.init (this, clientInfo notification, hydraSDKConfig)), but when I clear applications from back stack, the notification continues to live, I tried to clear with update, but it doesn't work (HydraSdk.update (NotificationConfig.newBuilder (). disabled (). build ()))

timoshenkoav commented 5 years ago

what is you config for notification in HydraSdk.init call?

Alex2105 commented 5 years ago

In method init, Hydra Sdk take NotificationConfig class

timoshenkoav commented 5 years ago

notification for what state you cannot clear? idle/connected? You can pass disabled NotificationConfig, it will not show notifications NotificationConfig notificationConfig = NotificationConfig.newBuilder() .title(getResources().getString(R.string.app_name)) .channelId(CHANNEL_ID) .disabled() .build();