iOS Tutorial FirebaseNotifications / Push Messages (server not required)

Status
Not open for further replies.

dealsmonkey

Active Member
Licensed User
Yes. What happens when you run it? Do you see the push token logs?
In the fcm_connected is subscribe to ios+general, I am getting a PushToken:1 from the log and a token is being generated. If I send from firebase it shows as completed, but no devices.

My b4j app log is this :

B4X:
Waiting for debugger to connect...
Program started.
[jobname=fcm, success=true, username=
, password=, errormessage=, target=class b4j.example.main
, taskid=1, req=anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpRequest@133314b, tag=java.lang.Object@b1bc7ed
, httputils2service=null]
{"message_id":7452680364343505248}
Thanks in advance.
 

dealsmonkey

Active Member
Licensed User
You mean ios_general, right?


This is not relevant. Don't use Firebase console.

The message was sent successfully.
Are you using the exact code from the tutorial?

Have you tested it in both background and foreground modes?
Ok, thanks. I have checked the code but will do so again. I have tried foreground and background. I will keep checking, thanks for your input, it is appreciated.

Neil
 

dealsmonkey

Active Member
Licensed User
Just one thing is, you mentioned in an earlier post about checking the aps.cer file and the bundle ID. When I look in the aps.cer, my bundle
Ok, thanks. I have checked the code but will do so again. I have tried foreground and background. I will keep checking, thanks for your input, it is appreciated.

Neil
Ok, I have sorted out my problem :oops::oops::oops: = analytics.Initialize

I had forgotten to initialize the analytics. As soon as I did the messages came through :)

The good thing about this, is I now understand the Apple Certificate, provisioning system a lot better !!!!

Thanks for your help again.

Regards

Neil
 

Melek

Member
Licensed User
Enviando datos al compilador remoto. Error
Out: Build settings from command line:
ARCHS = arm64
CODE_SIGN_IDENTITY = iPhone Distribution: Inversiones Alzir S DE RL (QZ4V5V6D72)
CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/<user id>/Payload
OTHER_CODE_SIGN_FLAGS = --keychain <user id>
PRODUCT_NAME = Ferinpro 2019
PROVISIONING_PROFILE = f46fb132-e8f2-4a62-8be1-ab02887a87c8

note: Using new build system
note: Planning build
note: Constructing build description
CreateBuildDirectory /Users/administrator/Documents/UploadedProjects/<user id>/build (in target: B4iProject)
cd /Users/administrator/Documents/UploadedProjects/<user id>
builtin-create-build-directory /Users/administrator/Documents/UploadedProjects/<user id>/build

MkDir /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Ferinpro\ 2019.app (in target: B4iProject)
cd /Users/administrator/Documents/UploadedProjects/<user id>
/bin/mkdir -p /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Ferinpro\ 2019.app

WriteAuxiliaryFile /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/Entitlements.plist (in target: B4iProject)
cd /Users/administrator/Documents/UploadedProjects/<user id>
write-file /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/Entitlements.plist

ProcessProductPackaging /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/f46fb132-e8f2-4a62-8be1-ab02887a87c8.mobileprovision /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Ferinpro\ 2019.app/embedded.mobileprovision (in target: B4iProject)
cd /Users/administrator/Documents/UploadedProjects/<user id>
builtin-productPackagingUtility /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/f46fb132-e8f2-4a62-8be1-ab02887a87c8.mobileprovision -o /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Ferinpro\ 2019.app/embedded.mobileprovision


ld: symbol(s) not found for architecture arm64
clang: error:
linker command failed with exit code 1 (use -v to see invocation)


Error: ** BUILD FAILED **


The following build commands failed:
Ld /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Ferinpro\ 2019.app/Ferinpro\ 2019 normal arm64
(1 failure)
 

Melek

Member
Licensed User
Hi, I have this error when compiling the App, could you help me?
I followed all the steps as in the tutorial
 
Status
Not open for further replies.
Top