pushportal_package 0.0.1+3 copy "pushportal_package: ^0.0.1+3" to clipboard
pushportal_package: ^0.0.1+3 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',
    passsword: '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()
  • getNotificationLog()
  • openedNotification()
  • hideNotification()
  • getNotificationLogDetail()
  • unreadCountNotification()
1
likes
0
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

Push notification project.

License

unknown (license)

Dependencies

dio, firebase_core, firebase_messaging, flutter, flutter_local_notifications

More

Packages that depend on pushportal_package