diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 7f78549d..8cd1055f 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -371,7 +371,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = 3A359E86ZF; + DEVELOPMENT_TEAM = 99Z3UD3LJM; ENABLE_BITCODE = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -460,7 +460,7 @@ "\"UserNotifications\"", "\"-lc++\"", ); - PRODUCT_BUNDLE_IDENTIFIER = com.hmg.atoms; + PRODUCT_BUNDLE_IDENTIFIER = com.habib.atoms; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; @@ -594,7 +594,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = 3A359E86ZF; + DEVELOPMENT_TEAM = 99Z3UD3LJM; ENABLE_BITCODE = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -683,7 +683,7 @@ "\"UserNotifications\"", "\"-lc++\"", ); - PRODUCT_BUNDLE_IDENTIFIER = com.hmg.atoms; + PRODUCT_BUNDLE_IDENTIFIER = com.habib.atoms; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; @@ -703,7 +703,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = 3A359E86ZF; + DEVELOPMENT_TEAM = 99Z3UD3LJM; ENABLE_BITCODE = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -792,7 +792,7 @@ "\"UserNotifications\"", "\"-lc++\"", ); - PRODUCT_BUNDLE_IDENTIFIER = com.hmg.atoms; + PRODUCT_BUNDLE_IDENTIFIER = com.habib.atoms; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; diff --git a/ios/Runner/GoogleService-Info.plist b/ios/Runner/GoogleService-Info.plist index b6a5d4ff..8e17efda 100644 --- a/ios/Runner/GoogleService-Info.plist +++ b/ios/Runner/GoogleService-Info.plist @@ -2,10 +2,6 @@ - CLIENT_ID - 973582662416-3jlv0ckuiupmo20lsjv56pcqgho6ga63.apps.googleusercontent.com - REVERSED_CLIENT_ID - com.googleusercontent.apps.973582662416-3jlv0ckuiupmo20lsjv56pcqgho6ga63 API_KEY AIzaSyACQkSleNwU1jzEKR5ho1uSfZERokwwAbc GCM_SENDER_ID @@ -13,7 +9,7 @@ PLIST_VERSION 1 BUNDLE_ID - com.hmg.atoms + com.habib.atoms PROJECT_ID atoms-fb912 STORAGE_BUCKET @@ -29,6 +25,6 @@ IS_SIGNIN_ENABLED GOOGLE_APP_ID - 1:973582662416:ios:bc4a8061444c6a08fbc395 + 1:973582662416:ios:8c0d69c8a1d0d065fbc395 \ No newline at end of file diff --git a/lib/controllers/notification/firebase_notification_manger.dart b/lib/controllers/notification/firebase_notification_manger.dart index 62d6c06f..19f47881 100644 --- a/lib/controllers/notification/firebase_notification_manger.dart +++ b/lib/controllers/notification/firebase_notification_manger.dart @@ -35,11 +35,7 @@ class FirebaseNotificationManger { ); if (settings.authorizationStatus == AuthorizationStatus.authorized) { - if (Platform.isIOS) { - token = await messaging.getAPNSToken(); - } else { - token = await messaging.getToken(); - } + token = await messaging.getToken(); } print("pushToken:$token"); return token; diff --git a/pubspec.yaml b/pubspec.yaml index 0dda518e..c8bf3c04 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: test_sa -description: medical app to manage medical devices issuse +description: medical app to manage medical devices issues # The following line prevents the package from being accidentally published to # pub.dev using `flutter pub publish`. This is preferred for private packages. @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.6+5 +version: 1.0.7+6 environment: sdk: ">=2.7.0 <3.0.0"