Closed shuvojit007 closed 4 years ago
@shuvojit007 Please see the OneSignal troubleshooting guide on this as it most likely is a network connection issue to Apple's Sandbox server. https://documentation.onesignal.com/docs/troubleshooting-ios#section-apns-delegate-never-fired
It is possible there is a conflicting library if you seeing the issue consistently between a number of devices. If so reply with a list of the flutter libraries and versions you are using. The Podfile you post won't include them. Lastly I recommend trying to reproduce the problem with a new flutter project to narrow down which one is causing the issue.
My Flutter libraries are listed below 👇
name: ProgrammingHero
version: 1.0.0+1
environment:
sdk: ">=2.2.2 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
rxdart: ^0.22.0
google_sign_in:
sembast: ^1.16.0+1
path_provider: ^1.1.0
shared_preferences: ^0.5.3+1
#cached_network_image: ^1.1.3
cached_network_image: ^2.0.0-rc
#Firebase Dependency
firebase_auth: ^0.15.3
cloud_firestore: ^0.12.6
firebase_database: ^3.0.7
#Sign in
apple_sign_in: ^0.1.0
flutter_auth_buttons: ^0.6.0
#One Signal
onesignal_flutter: ^2.3.4
#design
shimmer: ^1.0.0
flutter_html: ^0.11.0
webview_flutter: ^0.3.10+3
rich_code_editor: ^0.2.9
dynamic_theme: ^1.0.1
#NetWorking
dio: ^2.1.16
#Toast
fluttertoast: ^3.1.0
progress_dialog: ^1.1.0+1
device_info: ^0.4.0+2
share: ^0.6.2+1
url_launcher: ^5.1.2
#Image Picker and Cropper
image_cropper: 1.0.2
image_picker: 0.6.0+17
#Flutter Bloc
flutter_bloc: ^0.21.0
equatable: ^0.5.1
#flame
flame: ^0.15.1
introduction_screen: ^1.0.6
flare_flutter: ^1.5.8
pull_to_refresh: ^1.5.6
like_button: ^0.1.9
#folder picker
folder_picker: ^0.2.1
#type writer
animated_text_kit: ^1.3.1
worm_indicator: 0.2.4
audioplayers: ^0.13.0
flushbar: ^1.9.0
timeago: ^2.0.19
flutter_linkify: ^2.1.0
font_awesome_flutter: ^8.5.0
#get_it: ^3.0.0+1
get_it: ^3.0.3
firebase_admob: ^0.9.0+7
simple_animations: ^1.3.3
image_downloader: ^0.19.0
flutter_facebook_login: ^3.0.0
in_app_purchase: ^0.2.1+4
connectivity: ^0.4.5+3
http_server: ^0.9.8+1
flutter_inappwebview: ^2.1.0+1
# local_assets_server: ^1.0.1
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/img/icon.png"
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: "^0.7.3"
flutter:
uses-material-design: true
assets:
- assets/img/
- assets/img/hero/
- assets/settings/
- assets/json/
- assets/js/highlight.js
- assets/sounds/
- assets/images/
fonts:
- family: Hearticon
fonts:
- asset: fonts/hearticon.ttf
- family: GalaxyIcon
fonts:
- asset: fonts/Galaxy.ttf
- family: CustomIcons
fonts:
- asset: fonts/CustomIcons.ttf
- family: Montserrat
fonts:
- asset: fonts/Montserrat-SemiBold.ttf
- family: Poppins
fonts:
- asset: fonts/poppinsbold.ttf
- asset: fonts/poppinsmedium.ttf
- asset: fonts/poppinsregular.ttf
- asset: fonts/poppinssemibold.ttf
- family: Bebas
fonts:
- asset: fonts/bebas.ttf
I also checked the OneSignal troubleshooting guide very carefully and everything seems ok to me
I have the same issue when i used this sdk in my flutter project. I can get two types of issues .Other Apns 3000 Error or Apns Delegate Never Fired
@shuvojit007 Thanks for the list of plugins, I don't see any push or notification related plugins, however it is possible one or may still be using and swizzling UNUserNotificationCenterDelegate
in an incorrect way and causing the issue. I recommend any of the following ot find the root of your issue:
@changfeifan The "Apns 3000 Error" will happen if your app does not have the "Push Notification" capabilities enabled for your bundle id. Please double check you have followed step "3. Add Required Capabilities (iOS)". If this is already check I recommend toggling it to ensure it gets provisioned correctly.
For the "Apns Delegate Never Fired" please see my https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/220#issuecomment-603468236 above.
Closing due to inactivity
@shuvojit007 Did you ever get your issue figured out, I am getting the APNS Delegate Never Fired also and my setup seems good. I am wondering what you found?
For whoever finds this, it seemed it was a DNS issue for me, found a suggestion here:
@jkasten2 I already go through your step and its seems like the problem in ios 13. Because it works fine in lower os.
@bagintz not yet....still looking for a solution
@shuvojit007 try the DNS change, just for giggles. I was sure it wouldn't work and it did!
@bagintz you mean change the dns of my internet provider?
@shuvojit007 no, on the iOS device that is having problems (https://appleinsider.com/articles/18/04/22/how-to-change-the-dns-server-used-by-your-iphone-and-ipad)
@bagintz No, it didn't work. I think the actual problem on the ios 13
@rgomezp is there any update
Description:
Hello, Everyone. I am developing ios app with flutter and using onesignal.com for push notification
☝️ But I got this issue on OneSignal Dashboard. I am not sure what is this issue.
Environment OneSignal Flutter SDK version: 2.3.4 Xcode Version :11
Steps to Reproduce Issue:
My pod file