pushportal_package 0.0.3+1 copy "pushportal_package: ^0.0.3+1" to clipboard
pushportal_package: ^0.0.3+1 copied to clipboard

Push notification project.

Push Portal Plugin for Flutter #

push notification for application IOS and Android.

initializeApp #

 await PushPortal.instance.initializeApp(
    username: 'username',
    password: 'password',
  );

can call function #

 PushPortal.instance.setCallbackShowFlutterNotification((message) {
     print("----\nhandle show flutter notification\n----");
   });

 PushPortal.instance.setCallbackReceivePayload((message) {
     print("----\ncallback Receive Payload\n----");
   });

 PushPortal.instance.setCallbackInitialMessage((massage) async {
     print("----\ncallback Initial Message\n----");
     WidgetsBinding.instance.addPostFrameCallback((_) async {
       Get.to(const Mailbox());
     });
   });

function list

  • login()
  • relogin()
  • getFirebaseMessagingToken()
  • setBaseUrl()
  • setCallbackShowFlutterNotification()
  • setCallbackReceivePayload()
  • setCallbackInitialMessage()

can call sevice #

final unreadCount = await PushPortal.instance.sevice
        .unreadCountNotification(
            memberId: memberId, deviceNumber: deviceNumber);

sevices list

  • createTokenMember() -> change name to registerTokenMember()
  • getNotificationLog()
  • openedNotification()
  • hideNotification()
  • getNotificationLogDetail()
  • unreadCountNotification() *new
  • getNotificationLogV2()
  • openedNotificationV2()
  • hideNotificationV2()
  • getNotificationLogDetailV2()
1
likes
0
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

Push notification project.

License

unknown (license)

Dependencies

dio, firebase_core, firebase_messaging, flutter

More

Packages that depend on pushportal_package