AttributeError: 'GradientState' object has no attribute '_iterate_samples_seen'

Hello fan,
I have the same package version as README.md, but when I run 'accelerate launch --multi_gpu --num_processes 1 --mixed_precision fp16 train_t2i_discrete.py     --config=configs/mscoco_uvit_small.py     --config.nnet.depth=16', I met the error as follows:
Traceback (most recent call last):   File "/home/yhyaaa/U-ViT/train_t2i_discrete.py", line 333, in <module>     app.run(main)   File "/home/yhyaaa/.local/lib/python3.9/site-packages/absl/app.py", line 308, in run     _run_main(main, args)   File "/home/yhyaaa/.local/lib/python3.9/site-packages/absl/app.py", line 254, in _run_main     sys.exit(main(argv))   File "/home/yhyaaa/U-ViT/train_t2i_discrete.py", line 324, in main     train(config)   File "/home/yhyaaa/U-ViT/train_t2i_discrete.py", line 237, in train     batch = tree_map(lambda x: x.to(device), next(data_generator))   File "/home/yhyaaa/U-ViT/train_t2i_discrete.py", line 154, in get_data_generator     for data in tqdm(train_dataset_loader, disable=not accelerator.is_main_process, desc='epoch'):   File "/home/yhyaaa/.local/lib/python3.9/site-packages/tqdm/std.py", line 1181, in __iter__     for obj in iterable:   File "/home/yhyaaa/.local/lib/python3.9/site-packages/accelerate/data_loader.py", line 350, in __iter__     self.gradient_state._iterate_samples_seen(find_batch_size(current_batch)) AttributeError: 'GradientState' object has no attribute '_iterate_samples_seen'
My environment is:
python=3.10.0 cuda=12.3 1*A100
Could you please give some suggestions?

Fix.
When I run pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu116, Conda will install torch==2.3.0 in my environment(cuda12.3). After I explicitly set the torch version to 1.13.1, like pip install torch==1.13.1 torchvision --extra-index-url https://download.pytorch.org/whl/cu116, it will install torch 1.13.1+cu116, and this issue disappears.


contribute to wiki

How do I contribute to the Wiki?

let me know what you want you contribute and I'll add what's needed ;)


Update docs for VFL

Purpose

Make it easy for users to find VFL examples
What is the expected review turnaround time?

Urgency:

[ ] High (needs review today)
[X] Medium (needs review within a few days - most common)
[ ] Low (can wait a week)

Does this introduce a breaking change?

[ ] Yes
[X] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[X] Documentation content changes
[ ] Other... Please describe:

Thanks for the proposal! A couple things I'd like to see:

apply some changes to the concepts/vertical-fl.md to remove things that should be in the tutorials (how to submit this and that experiment, installing dependencies, setup redis stream, etc)
create a tutorial for ccfraud_vertical and ccfraud_fedonce where those instructions are given (even if they are repeated, doesn't matter, all the steps are given in one place for each
instead of names of sections like (all but X), make up a table showing how different scenarios apply different components of VFL?


docker-compose

the current implementation is only for kubernetes?
or in docker-compose can I also run?

Yes, the current implementation is only for Kubernetes. We have some distant plans to widen support to other systems, but for now, we focus on Kubernetes.


[fenster] Add new port

[x] Changes comply with the maintainer guide.
[x] The name of the port matches an existing name for this component on https://repology.org/ if possible, and/or is strongly associated with that component on search engines.
[ ] Optional dependencies are resolved in exactly one way. For example, if the component is built with CMake, all find_package calls are REQUIRED, are satisfied by vcpkg.json's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.
[x] The versioning scheme in vcpkg.json matches what upstream says.
[x] The license declaration in vcpkg.json matches what upstream says.
[x] The installed as the "copyright" file matches what upstream says.
[x] The source code of the component installed comes from an authoritative source.
[x] The generated "usage text" is accurate. See adding-usage for context.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is in the new port's versions file.
[x] Only one version is added to each modified port's versions file.

@myd7349, Thanks for you PR, Do you mind changing the port name to zserge-fenster? Because I use fenster, fenster c++ can't quickly search for your library on the Internet. After searching with zserge-fenster, the first match is your repository.

@myd7349, Thanks for you PR, Do you mind changing the port name to zserge-fenster? Because I use fenster, fenster c++ can't quickly search for your library on the Internet. After searching with zserge-fenster, the first match is repository.

Hi! @JonLiu1993 Thank you for your review.
I previously searched for "fenster" on https://repology.org/ and found that there are no other C or C++ libraries using that name. According to the project's description, "fenster" is derived from the German word for "window," so searching for "fenster" on Google might return a lot of unrelated results. However, searching for "fenster gui" should lead you to this library. In fact, I noticed that bindings for fenster in other languages also use the name "fenster," such as: https://github.com/jonasgeiler/lua-fenster?tab=readme-ov-file#installation.
I personally don't mind using the name "zserge-fenster," but I would also like to hear other people's opinions on it.

@myd7349, when I tested the usage by fenster:x64-windows, I get this error:
CMakeLists:
cmake_minimum_required(VERSION 3.5)
set(CMAKE_CXX_STANDARD 20)

project(test)

find_path(FENSTER_INCLUDE_DIRS "fenster.h")

add_executable(test CMakeProject1.cpp)

target_include_directories(test PRIVATE ${FENSTER_INCLUDE_DIRS})

Config:
1> CMake generation started for default configuration: 'x64-Debug'.
1> Found and using vcpkg toolchain file (F:/Feature-test/fensTER/scripts/buildsystems/vcpkg.cmake).
1> Command line: "C:\WINDOWS\system32\cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="C:\Users\test\source\repos\CMakeProject1\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe"   -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" -DCMAKE_TOOLCHAIN_FILE="F:/Feature-test/fensTER/scripts/buildsystems/vcpkg.cmake" "C:\Users\test\source\repos\CMakeProject1" 2>&1"
1> Working directory: C:\Users\test\source\repos\CMakeProject1\out\build\x64-Debug
1> [CMake] -- The C compiler identification is MSVC 19.40.33814.0
1> [CMake] -- The CXX compiler identification is MSVC 19.40.33814.0
1> [CMake] -- Detecting C compiler ABI info
1> [CMake] -- Detecting C compiler ABI info - done
1> [CMake] -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
1> [CMake] -- Detecting C compile features
1> [CMake] -- Detecting C compile features - done
1> [CMake] -- Detecting CXX compiler ABI info
1> [CMake] -- Detecting CXX compiler ABI info - done
1> [CMake] -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
1> [CMake] -- Detecting CXX compile features
1> [CMake] -- Detecting CXX compile features - done
1> [CMake] -- Configuring done (2.1s)
1> [CMake] -- Generating done (0.0s)
1> [CMake] -- Build files have been written to: C:/Users/test/source/repos/CMakeProject1/out/build/x64-debug
1> Extracted CMake variables.
1> Extracted source files and headers.
1> Extracted code model.
1> Extracted toolchain configurations.
1> Extracted includes paths.
1> CMake generation finished.

Build:
>------ Build All started: Project: CMakeProject1, Configuration: x64-Debug ------
  [1/2] Building CXX object CMakeProject1\CMakeFiles\test.dir\CMakeProject1.cpp.obj
  FAILED: CMakeProject1/CMakeFiles/test.dir/CMakeProject1.cpp.obj
  C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\Hostx64\x64\cl.exe  /nologo /TP  -IF:\Feature-test\fensTER\installed\x64-windows\include /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Ob0 /Od /RTC1 -std:c++20 -ZI /showIncludes /FoCMakeProject1\CMakeFiles\test.dir\CMakeProject1.cpp.obj /FdCMakeProject1\CMakeFiles\test.dir\ /FS -c C:\Users\v-zhli17\source\repos\CMakeProject1\CMakeProject1\CMakeProject1.cpp
F:\Feature-test\fensTER\installed\x64-windows\include\fenster.h(184): error C2440: 'initializing': cannot convert from 'HGDIOBJ' to 'HBITMAP'
  F:\Feature-test\fensTER\installed\x64-windows\include\fenster.h(184): note: Conversion from 'void*' to pointer to non-'void' requires an explicit cast
F:\Feature-test\fensTER\installed\x64-windows\include\fenster.h(314): warning C4244: 'argument': conversion from 'int64_t' to 'DWORD', possible loss of data
  ninja: build stopped: subcommand failed.

Build All failed.

@myd7349, Thanks for you PR, Do you mind changing the port name to zserge-fenster? Because I use fenster, fenster c++ can't quickly search for your library on the Internet. After searching with zserge-fenster, the first match is repository.

Hi! @JonLiu1993 Thank you for your review.
I previously searched for "fenster" on https://repology.org/ and found that there are no other C or C++ libraries using that name. According to the project's description, "fenster" is derived from the German word for "window," so searching for "fenster" on Google might return a lot of unrelated results. However, searching for "fenster gui"/"fenster c" should lead you to this library. In fact, I noticed that bindings for fenster in other languages also use the name "fenster," such as: https://github.com/jonasgeiler/lua-fenster?tab=readme-ov-file#installation.
I personally don't mind using the name "zserge-fenster," but I would also like to hear other people's opinions on it.

@vicroms, could you please take a look at whether this new port name makes sense?

cmake_minimum_required(VERSION 3.5)
set(CMAKE_CXX_STANDARD 20)
project(test)
find_path(FENSTER_INCLUDE_DIRS "fenster.h")
add_executable(test CMakeProject1.cpp)
target_include_directories(test PRIVATE ${FENSTER_INCLUDE_DIRS})

Hi! This should work:
cmake_minimum_required(VERSION 3.5)

project(test C)

find_path(FENSTER_INCLUDE_DIRS "fenster.h")

add_executable(test CMakeProject1.c)

target_include_directories(test PRIVATE ${FENSTER_INCLUDE_DIRS})

In C:
int a = 42;
void *p = &a;
int *p2 = p;

It is OK.
In C++, a type cast is necessary:
int a = 42;
void *p = &a;
// int *p2 = p; // Won't compile.
int *p2 = (int *)p; // or `static_cast`

@myd7349, Thanks for your suggesstion. usage tested successfully by fenster:x64-windows:
sqlitecpp provides CMake targets:

  # this is heuristically generated, and may not be correct
  find_package(SQLiteCpp CONFIG REQUIRED)
  target_link_libraries(main PRIVATE SQLiteCpp)

We are still discussing the name of the new port. The purpose of adding the reviewed label is to make it visible to reviewers.

Hi! @vicroms Thank you for your review.


Error in created hook: "TypeError: Cannot read property 'version' of undefined"

Hello !! I follow all instructions ( nothing hard ) and all right!
When I go to /login i get this error.

Something that can be?  Thanks !!!!

Try again, I made a bunch of changes to Inertia yesterday that caused this. I've just updated this repo to match those changes. 🤟

@reinink  I update all, and recompile and I get
Undefined variable: component  in app.blade.php
Thanks for you time !

Have you cleared your view cache? Try this:
php artisan view:clear

I did not, what a shame :/
Working now, thanks

👍


Game crashes while loading since latest update, to v<IP_ADDRESS>207

Game does not load as far as the menu screen. It loads the splash screen overlaid with the "Open Source Armory" text then crashes to desktop before reaching the menu screen. No error report generated.
I have completely uninstalled and deleted all mods and mod settings, then installed the following (this is the order I installed them and their load order):

Harmony
ButterLib
UIExtenderEx
Mod Configuration Menu v5
Open Source Armory
Open Source Saddlery
Open Source Weaponry
Banner Kings (plus the one-off manual install of assets)

Mod Version
Banner Kings v<IP_ADDRESS>-1
Banner King Assets v1.0
Evidence
When I de-active Banner Kings mod in the pre-launch window, the game does not then crash to desktop.

Forgot to say, thank you fro this mod it is a literally a game-changer!

Sorry just seen you deal with bugs in Discord. Am closing this.


Add examples for fmt_nanoplot()

This adds some basic examples for the fmt_nanoplot() method.

Thanks for reviewing this so quickly! I've reduced the length of the Details section. You're right it was way too much (plus we have that dedicated spot in the Get Started guide for all this).


PRnetTrainer' object has no attribute 'r2_mean

When I run python test_demo.py --split_key demo_split --data_path /mnt/e/PRnet/dataset/demo.h5ad --results_dir /mnt/e/PRnet/results, I encounter the error "AttributeError: 'PRnetTrainer' object has no attribute 'r2_mean'." How can I resolve this issue? Thank you.

did you solve it? i also met the same erro

I also met this bug

I am also having the same problem an can't get past the demo.  Any help appreciated.

We have recently updated the GitHub repository to address some missing functions in the code. Please pull the latest version, which should resolve these issues.


Just comment it out for now

Regression test on just 10 documents passed

It didn't seem to break.  I left the line there because there's going eventually to be a merge conflict with the LUM version.


add base image versioning

Add versioning (and checks) for base images, as discussed here: https://github.com/dfki-ric/docker_image_development/pull/17
The VERSION file of this repo is copied into the base image, the entrypoint compares the version with the VERSION file of the repo. This way, we can check if the scripts are compatible to the image
We need to start adding tags for the versions and add them to the version file, to be able to get the correct script set for a given image.
This uses semantic versioning: Major version mismatch results in an error, others will run the image but create warnings up update image/scripts.

There is no check when we create a new devel image, only when we start it, but i think this is ok for now


Improve validator registration

This changeset is an attempt to improve and standardize the validator registration hooks introduced with the OpenIDConnect changes.

Moves custom validator registration up onto the GrantTypeBase class and removes those methods from the subclass grants.
DRYs up the OpenIDConnect grant type classes to be more of thin proxies onto the standard OAuth2 grant classes.
Adds the ability to register validators that run either before or after the standard validation methods.
Adds custom validator invocations to ClientCredentialsGrant, RefreshTokenGrant and ResourceOwnerPasswordCredentialsGrant.
Adds tests for custom validators.

This looks great. Can you add some documentation?
If you can't just let me know and I'll pick it up as soon as I'll be able to.

@bjmc Ping?

Yeah, I can add some documentation. Do you just want docstrings? Or as part of a separate document?

Docsstrings inline and usage documentation under /docs is possible. Thanks.
If you are not already on the AUTHORS file feel free to add yourself.

@thedrow I hope that looks okay for the docs, I'm not an expert at the sphinx syntax.

@thedrow Do you like that better? I moved all the custom validators into a container class, and you can now pass keyword args to the grant type constructor to initialize a GrantType with custom validations, instead of appending them after the fact.

LGTM! Thanks.


engagement_time_msec (_et) = 9075;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>782483044;
}
2020-10-02 08:15:20.937295+0100 MessagingExample[410:9130] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.1889330148696899
2020-10-02 08:15:20.937600+0100 MessagingExample[410:9034] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, app_background (_ab), {
    ga_event_origin (_o) = auto;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>782483044;
}
2020-10-02 08:15:20.939620+0100 MessagingExample[410:9130] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>782483044;
}
2020-10-02 08:15:20.951248+0100 MessagingExample[410:9034] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>782483044;
}
2020-10-02 08:15:20.953628+0100 MessagingExample[410:9130] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-02 08:15:20.953942+0100 MessagingExample[410:9130] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.1724669933319092
2020-10-02 08:15:20.961343+0100 MessagingExample[410:9034] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 9075;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>782483044;
}
2020-10-02 08:15:20.961415+0100 MessagingExample[410:9034] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>782483044;
}
2020-10-02 08:15:20.963853+0100 MessagingExample[410:9034] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: lifetime_user_engagement (_lte), 9076
2020-10-02 08:15:20.969164+0100 MessagingExample[410:9130] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: session_user_engagement (_se), 9076
2020-10-02 08:15:20.970917+0100 MessagingExample[410:9034] 6.33.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 457
2020-10-02 08:15:20.971303+0100 MessagingExample[410:9130] 6.33.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 3,<PHONE_NUMBER>844
2020-10-02 08:15:20.975543+0100 MessagingExample[410:9130] 6.33.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data:<PHONE_NUMBER>974, <APMPBMeasurementBatch: 0x281929780>
2020-10-02 08:15:20.979070+0100 MessagingExample[410:9034] 6.33.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-10-02 08:15:21.043675+0100 MessagingExample[410:9130] 6.33.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-10-02 08:15:21.088960+0100 MessagingExample[410:9131] 6.33.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-10-02 08:15:21.098473+0100 MessagingExample[410:9019] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-02 08:15:21.098558+0100 MessagingExample[410:9019] 6.33.0 - [Firebase/Analytics][I-ACS023142] Cancelling background upload task. Task ID : 20

Thank you for sharing that, I will take a look at. Seems like the token retry wasn't triggered when system detects a late APNS arrives. This is rare but somehow Apple returns the valid APNS token at a later time.
I will see how we can improve the situation.

@tomkelsey Are you using the quickstart objectiveC app or the swift app?

@chliangGoogle Objective-C 👍

I will take a look at. Seems like the token retry wasn't triggered when system detects a late APNS arrives.

When I can't receive the push by using the FCM, I directly use the APNs as same app instance with nothing to do, it always works.
So, Is there a way to confirm that the FCM token and APNs token have been successfully bound? Or is it possible to provide a way to bind manually? @chliangGoogle It would be best if you can explain the flow of APNs token bind.
I am trying to provide users with a reset button when they complain about not receiving the push. It will call [[UIApplication sharedApplication] unregisterForRemoteNotifications], [[FIRMessaging messaging] deleteDataWithCompletion:], [[UIApplication sharedApplication] registerForRemoteNotifications], [[FIRMessaging messaging] tokenWithCompletion:] in turn. I'm not sure if this is the best practice but it is effective most of the time.

@ewfian You can file a customer report issue with us and our team can query if the token has successfully bind for you.

@tomkelsey I'm not able to reproduce, but somehow your apns token is updated in the middle of fetch that the request didn't go through. Looking into it right now.

@tomkelsey I'm able to reproduce, but then stop reproducing again. I've put up a fix and feel free to test it with the fix branch in the mean time.

I am also experiencing this issue in my current React Native app:
"@react-native-firebase/app": "^8.4.5"
"@react-native-firebase/messaging": "^7.8.11"
which uses the Firebase SDK version: 6.30.0
This is what happens:

Remove previous build from device (if any)
Build to device, allow notifications and get token
Send notifications to device with Firebase Functions:
admin.messaging().sendToDevice
I get the following responses (3 tests):
{"messageId":"0:1601943267274750%585fd2f2585fd2f2"}
{"messageId":"0:1601943317968318%585fd2f2585fd2f2"}
{"messageId":"0:1601943360621290%585fd2f2585fd2f2"}
App is not receiving any messages.
Next I force quit and relaunch the app
Send notifications to device with Firebase Functions (same token)
I get the following response:
{"messageId":"1601943466367901"}
App is receiving message and working as expected.

@chliangGoogle Thanks again for your time and effort on this.
Unfortunately I'm still having the same issues after applying your fix.
After a bit of Googling, I attempted to use your fix by including this line in my Podfile.
pod 'FirebaseInstanceID', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :branch => 'chen/fm-swizzling'
But believe I received errors as the master is currently at version 7.0 and the other pods (Firebase/Analytics and Firebase/Messaging) weren't?
So I cleared out the Pods folder and Podfile.lock and reinstalled, then I manually patched FIRInstanceID.m to include your fix.
Just thought I'd explain the above in case that's the wrong approach and isn't properly patching things.
I then repeated the steps above as before. Here are the logs:
PS. For me the key to being able to reproduce it appears to be restarting the device between uninstalling and reinstalling the app. Not sure if that triggers a delay with the APNS stuff or not? May just be a device specific quirk!
First install from xcode. Not working.
2020-10-06 07:48:16.524891+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Core][I-COR000001] Configuring the default app.
2020-10-06 07:48:16.524955+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Core][I-COR000033] Data Collection flag is not set.
2020-10-06 07:48:16.531958+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Analytics][I-ACS024000] Debug mode is on
2020-10-06 07:48:16.532122+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Analytics][I-ACS005000] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at http://goo.gl/9vSsPb
2020-10-06 07:48:16.533713+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:48:16.537784+0100 MessagingExample[349:6241] 6.33.0 - [Firebase/InstanceID][I-IID008009] Deleted checkin plist file.
2020-10-06 07:48:16.542900+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/InstanceID][I-IID007006] Checkin parameters: {
    checkin =     {
        iosbuild =         {
            model = "iPhone10,6";
            "os_version" = "IOS_14.0.1";
        };
        "last_checkin_msec" = 0;
        type = 2;
        "user_number" = 0;
    };
    digest = "";
    fragment = 0;
    id = 0;
    locale = "en_GB";
    "security_token" = 0;
    "time_zone" = "Europe/London";
    "user_serial_number" = 0;
    version = 2;
}
2020-10-06 07:48:16.544454+0100 MessagingExample[349:6241] 6.33.0 - [Firebase/Messaging][I-FCM002000] FIRMessaging library version 4.7.0
2020-10-06 07:48:16.554375+0100 MessagingExample[349:6244] 6.33.0 - [GULReachability][I-REA902003] Monitoring the network status
2020-10-06 07:48:16.555130+0100 MessagingExample[349:6244] 6.33.0 - [GULReachability][I-REA902003] Monitoring the network status
2020-10-06 07:48:16.555445+0100 MessagingExample[349:6244] 6.33.0 - [GULReachability][I-REA902003] Monitoring the network status
2020-10-06 07:48:16.557779+0100 MessagingExample[349:6247] 6.33.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60803000 started
2020-10-06 07:48:16.557871+0100 MessagingExample[349:6247] 6.33.0 - [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2020-10-06 07:48:16.558173+0100 MessagingExample[349:6247] 6.33.0 - [Firebase/Analytics][I-ACS023009] Debug logging enabled
2020-10-06 07:48:16.558246+0100 MessagingExample[349:6247] 6.33.0 - [Firebase/Analytics][I-ACS023207] To enable verbose logging set the following application argument: -FIRAnalyticsVerboseLoggingEnabled (see http://goo.gl/RfcP7r)
2020-10-06 07:48:16.563961+0100 MessagingExample[349:6243] 6.33.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2020-10-06 07:48:16.564745+0100 MessagingExample[349:6243] 6.33.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001008] Successfully created App Delegate Proxy automatically. To disable the proxy, set the flag GoogleUtilitiesAppDelegateProxyEnabled to NO (Boolean) in the Info.plist
2020-10-06 07:48:16.615416+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/InstanceID][I-IID013002] Removed cached checkin preferences from Keychain because this is a fresh install.
2020-10-06 07:48:16.615469+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/InstanceID][I-IID013006] App reset detected. Will delete server registrations.
2020-10-06 07:48:16.615797+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-10-06 07:48:16.615907+0100 MessagingExample[349:6240] 6.33.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected
2020-10-06 07:48:16.616299+0100 MessagingExample[349:6240] 6.33.0 - [GULReachability][I-REA902004] Network status has changed. Code:1, status:Disconnected
2020-10-06 07:48:16.616407+0100 MessagingExample[349:6240] 6.33.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected
2020-10-06 07:48:16.618235+0100 MessagingExample[349:6250] 6.33.0 - [Firebase/Analytics][I-ACS031010] Tracking view controller. Class, ID: ViewController,<PHONE_NUMBER>04158692
2020-10-06 07:48:16.618284+0100 MessagingExample[349:6250] 6.33.0 - [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: ViewController,<PHONE_NUMBER>04158692
2020-10-06 07:48:16.630473+0100 MessagingExample[349:6088] FCM registration token: f4ZpAl28I0oPii2dq85oFX:APA91bHY_gGS5wAmpYAJzK-EkuxI5gG8CxhJJ8iPKraZDQ_WASuD-gTinuvkufUce-6LZwi2DTDol3HW6tJAlHs9zZ_0oiSxikp4tBvjTooNdKCfmxSrn5p80fYAAZR-GprzGy6pWOQp
2020-10-06 07:48:16.631639+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/InstanceID][I-IID014012] Invalidating cached token for<PHONE_NUMBER>0 (*) due to token is no longer fresh.
2020-10-06 07:48:16.633042+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/InstanceID][I-IID005004] Checkin is in progress
2020-10-06 07:48:16.693994+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Installations][I-FIS001001] Sending request: <NSMutableURLRequest: 0x280f90140> { URL: https://firebaseinstallations.googleapis.com/v1/projects/test-project-a8fa2/installations/ }, body:{"appId":"1:86648024660:ios:0f5bfc6cf5109b79aa47c1","fid":"elEfKSGGgUlDr9DuqNKv57","authVersion":"FIS_v2","sdkVersion":"i:1.7.0"}, headers: {
    "Content-Type" = "application/json";
    "X-Goog-Api-Key" = "[REMOVED]";
    "X-Ios-Bundle-Identifier" = "[REMOVED]";
    "X-firebase-client" = "apple-platform/ios apple-sdk/18A390 fire-analytics/6.8.3 fire-fcm/4.7.0 fire-iid/4.7.0 fire-install/1.7.0 fire-ios/6.10.3 swift/false xcode/12A7300";
    "X-firebase-client-log-type" = 3;
}.
2020-10-06 07:48:16.736874+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Analytics][I-ACS002002] APMExperimentAlarm scheduled to fire in approx. (s): 9.999981880187988
2020-10-06 07:48:16.950871+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-10-06 07:48:16.951994+0100 MessagingExample[349:6244] 6.33.0 - [Firebase/Analytics][I-ACS029017] Configuration was not found in database. The configuration will be fetched from the network when necessary
2020-10-06 07:48:16.953246+0100 MessagingExample[349:6244] 6.33.0 - [Firebase/Analytics][I-ACS023016] Analytics is ready to receive events
2020-10-06 07:48:16.984222+0100 MessagingExample[349:6244] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: first_open_after_install (_fi), 1
2020-10-06 07:48:17.010762+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: first_open_time (_fot),<PHONE_NUMBER>000
2020-10-06 07:48:17.021703+0100 MessagingExample[349:6244] 6.33.0 - [Firebase/InstanceID][I-IID007003] Checkin successful with authId:<PHONE_NUMBER>180417257, digest: 1WHhsATAwQa+VE2s+EJ00A==, lastCheckinTimestamp:<PHONE_NUMBER>954
2020-10-06 07:48:17.022495+0100 MessagingExample[349:6244] 6.33.0 - [Firebase/InstanceID][I-IID005004] Successfully got checkin credentials
2020-10-06 07:48:17.022537+0100 MessagingExample[349:6244] 6.33.0 - [Firebase/InstanceID][I-IID008010] Checkin plist file is saved
2020-10-06 07:48:17.022751+0100 MessagingExample[349:6244] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, first_open (_f), {
    ga_event_origin (_o) = auto;
    previous_first_open_count (_pfo) = 30;
    update_with_analytics (_uwa) = 0;
}
2020-10-06 07:48:17.022845+0100 MessagingExample[349:6244] 6.33.0 - [Firebase/InstanceID][I-IID023002] Couldn't delete item from Keychain OSStatus: -25300 with the keychain query {
    acct = "[REMOVED]";
    class = genp;
    gena = "com.google.iid";
    svce = "com.google.iid.checkin";
}
2020-10-06 07:48:17.026495+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: first_open (_f), {
    ga_conversion (_c) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    previous_first_open_count (_pfo) = 30;
    update_with_analytics (_uwa) = 0;
}
2020-10-06 07:48:17.031457+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/InstanceID][I-IID005002] Checkin success.
2020-10-06 07:48:17.032092+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:48:17.032556+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/InstanceID][I-IID014000] Fetch new token for authorizedEntity:<PHONE_NUMBER>0, scope: *
2020-10-06 07:48:17.067797+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: first_open (_f), {
    ga_conversion (_c) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    previous_first_open_count (_pfo) = 30;
    update_with_analytics (_uwa) = 0;
}
2020-10-06 07:48:17.073152+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.3297480344772339
2020-10-06 07:48:17.085797+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: ga_session_id (_sid),<PHONE_NUMBER>
2020-10-06 07:48:17.092361+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: ga_session_number (_sno), 1
2020-10-06 07:48:17.098360+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, session_start (_s), {
    ga_event_origin (_o) = auto;
    session_id (_sid) =<PHONE_NUMBER>;
    session_number (_sno) = 1;
}
2020-10-06 07:48:17.099229+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: session_start (_s), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    session_id (_sid) =<PHONE_NUMBER>;
    session_number (_sno) = 1;
}
2020-10-06 07:48:17.105434+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Installations][I-FIS001003] Request response received: <NSMutableURLRequest: 0x280f90140> { URL: https://firebaseinstallations.googleapis.com/v1/projects/test-project-a8fa2/installations/ }, error: (null), body: {
  "name": "projects/86648024660/installations/elEfKSGGgUlDr9DuqNKv57",
  "fid": "elEfKSGGgUlDr9DuqNKv57",
  "refreshToken": "[REMOVED]",
  "authToken": {
    "token": "[REMOVED]",
    "expiresIn": "604800s"
  }
}
.
2020-10-06 07:48:17.105762+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Installations][I-FIS001005] Parsing server response for https://firebaseinstallations.googleapis.com/v1/projects/test-project-a8fa2/installations/.
2020-10-06 07:48:17.105876+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Installations][I-FIS001007] FIRInstallationsItem parsed successfully.
2020-10-06 07:48:17.111429+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: session_start (_s), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    session_id (_sid) =<PHONE_NUMBER>;
    session_number (_sno) = 1;
}
2020-10-06 07:48:17.113419+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/InstanceID][I-IID021000] Unregister request to https://fcmtoken.googleapis.com/register content: X-osv=14.0.1&device=5109741931183478582&plat=2&app=[REMOVED]&app_ver=1.5&X-cliv=fiid-4.7.0&delete=true
2020-10-06 07:48:17.121431+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-06 07:48:17.121782+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.2811609506607056
2020-10-06 07:48:17.123101+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
    engagement_time_msec (_et) = 1;
    ga_event_origin (_o) = auto;
}
2020-10-06 07:48:17.125954+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2020-10-06 07:48:17.135020+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
    engagement_time_msec (_et) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2020-10-06 07:48:17.140254+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-06 07:48:17.140956+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.2624269723892212
2020-10-06 07:48:17.154545+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2020-10-06 07:48:17.158538+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-06 07:48:17.159310+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.245460033416748
2020-10-06 07:48:17.169711+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2020-10-06 07:48:17.170878+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Analytics][I-ACS023220] Analytics screen reporting is enabled. Call +[FIRAnalytics logEventWithName:FIREventScreenView parameters:] to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
2020-10-06 07:48:17.172069+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
    ga_event_origin (_o) = auto;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>04158692;
}
2020-10-06 07:48:17.173653+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>04158692;
}
2020-10-06 07:48:17.182942+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>04158692;
}
2020-10-06 07:48:17.186968+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/InstanceID][I-IID003012] Provisioning profile has specifically provisioned devices, most likely a Dev profile.
2020-10-06 07:48:17.187047+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/InstanceID][I-IID003013] APNS Environment in profile: development
2020-10-06 07:48:17.191803+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/InstanceID][I-IID014011] Invalidating cached token for<PHONE_NUMBER>0 (*) due to APNs token change.
2020-10-06 07:48:17.194105+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:48:17.194205+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-10-06 07:48:17.284079+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/InstanceID][I-IID014007] Successfully deleted GCM server registrations on app reset
2020-10-06 07:48:17.285368+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-10-06 07:48:17.286381+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:48:17.315610+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/InstanceID][I-IID020000] Register request to https://fcmtoken.googleapis.com/register content: X-osv=14.0.1&device=5485046919180417257&X-scope=*&plat=2&app=[REMOVED]&app_ver=1.5&X-cliv=fiid-4.7.0&sender=86648024660&X-subtype=86648024660&appid=elEfKSGGgUlDr9DuqNKv57&gmp_app_id=1:86648024660:ios:0f5bfc6cf5109b79aa47c1
2020-10-06 07:48:17.453079+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
2020-10-06 07:48:17.453275+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-06 07:48:17.471143+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS900001] Downloading data. Host: https://app-measurement.com/config/app/1:86648024660:ios:0f5bfc6cf5109b79aa47c1?platform=ios&app_instance_id=98416A9747DA4C9390CD5E9D8750E017&gmp_version=60803
2020-10-06 07:48:17.535706+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/InstanceID][I-IID023002] Couldn't delete item from Keychain OSStatus: -25300 with the keychain query {
    acct = "[REMOVED]";
    class = genp;
    gena = "com.google.iid-tokens";
    svce = "86648024660:*";
}
2020-10-06 07:48:17.537687+0100 MessagingExample[349:6088] FCM registration token: elEfKSGGgUlDr9DuqNKv57:APA91bGatfEmVctVXsojo7Zd06j_TXgE0QEtaQrGp6bBSaJn6587_ET07jJRlc_6NWi6DSZ0cTCSufgrhR-pZFTEVmUBsYTqqZmB0JlFH16GAhjmjhnkQvPQ3KjvUuEktG_cOsanl_De
2020-10-06 07:48:17.539622+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/InstanceID][I-IID014001] Token fetch successful, token: elEfKSGGgUlDr9DuqNKv57:APA91bGatfEmVctVXsojo7Zd06j_TXgE0QEtaQrGp6bBSaJn6587_ET07jJRlc_6NWi6DSZ0cTCSufgrhR-pZFTEVmUBsYTqqZmB0JlFH16GAhjmjhnkQvPQ3KjvUuEktG_cOsanl_De, authorizedEntity:<PHONE_NUMBER>0, scope:*
2020-10-06 07:48:17.545656+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:48:17.549333+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/InstanceID][I-IID003016] Received APNS token while fetching default token. Refetching default token.
2020-10-06 07:48:17.549399+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-10-06 07:48:17.549439+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/InstanceID][I-IID014000] Fetch new token for authorizedEntity:<PHONE_NUMBER>0, scope: *
2020-10-06 07:48:17.566567+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/InstanceID][I-IID020000] Register request to https://fcmtoken.googleapis.com/register content: X-osv=14.0.1&device=5485046919180417257&X-scope=*&plat=2&app=[REMOVED]&app_ver=1.5&X-cliv=fiid-4.7.0&sender=86648024660&X-subtype=86648024660&appid=elEfKSGGgUlDr9DuqNKv57
2020-10-06 07:48:17.567627+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/config/app/1:86648024660:ios:0f5bfc6cf5109b79aa47c1?platform=ios&app_instance_id=98416A9747DA4C9390CD5E9D8750E017&gmp_version=60803
2020-10-06 07:48:17.649872+0100 MessagingExample[349:6244] 6.33.0 - [Firebase/Analytics][I-ACS023130] Configuration not found. Using default configuration
2020-10-06 07:48:17.656733+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: first_open (_f), {
    ga_conversion (_c) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    previous_first_open_count (_pfo) = 30;
    update_with_analytics (_uwa) = 0;
}
2020-10-06 07:48:17.661026+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 346
2020-10-06 07:48:17.661105+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 1,<PHONE_NUMBER>402
2020-10-06 07:48:17.670074+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: session_start (_s), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    session_id (_sid) =<PHONE_NUMBER>;
    session_number (_sno) = 1;
}
2020-10-06 07:48:17.670175+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2020-10-06 07:48:17.672284+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>04158692;
}
2020-10-06 07:48:17.675042+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: lifetime_user_engagement (_lte), 1
2020-10-06 07:48:17.676163+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: session_user_engagement (_se), 1
2020-10-06 07:48:17.680747+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 470
2020-10-06 07:48:17.682474+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 2,<PHONE_NUMBER>617
2020-10-06 07:48:17.692265+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data:<PHONE_NUMBER>690, <APMPBMeasurementBatch: 0x280f88580>
2020-10-06 07:48:17.699703+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-10-06 07:48:17.740695+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/InstanceID][I-IID014001] Token fetch successful, token: elEfKSGGgUlDr9DuqNKv57:APA91bElhd355HSenoX1kZRNOWvQBGzazMHBd_fB9YN7xwf8ScmTx8tXsm0rLjzX9YNi19ZLLi0wWaaEk94XdE6eShuTVohgQZDSsQn7MufxPZWql3M4ZyxVTedNovEaXa5sBEr4vhx6, authorizedEntity:<PHONE_NUMBER>0, scope:*
2020-10-06 07:48:17.775855+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-10-06 07:48:17.835592+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-10-06 07:48:17.839819+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.2221839427947998
2020-10-06 07:48:17.847858+0100 MessagingExample[349:6242] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-06 07:48:21.037630+0100 MessagingExample[349:6244] 6.33.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2020-10-06 07:48:22.205796+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: ViewController,<PHONE_NUMBER>04158692
2020-10-06 07:48:22.248917+0100 MessagingExample[349:6088] Local FCM registration token: elEfKSGGgUlDr9DuqNKv57:APA91bGatfEmVctVXsojo7Zd06j_TXgE0QEtaQrGp6bBSaJn6587_ET07jJRlc_6NWi6DSZ0cTCSufgrhR-pZFTEVmUBsYTqqZmB0JlFH16GAhjmjhnkQvPQ3KjvUuEktG_cOsanl_De
2020-10-06 07:48:22.273712+0100 MessagingExample[349:6088] Returning local object of class NSString
2020-10-06 07:48:22.292634+0100 MessagingExample[349:6240] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:48:22.295536+0100 MessagingExample[349:6244] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-10-06 07:48:22.295597+0100 MessagingExample[349:6088] Remote instance ID token: elEfKSGGgUlDr9DuqNKv57:APA91bElhd355HSenoX1kZRNOWvQBGzazMHBd_fB9YN7xwf8ScmTx8tXsm0rLjzX9YNi19ZLLi0wWaaEk94XdE6eShuTVohgQZDSsQn7MufxPZWql3M4ZyxVTedNovEaXa5sBEr4vhx6
2020-10-06 07:48:26.737409+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS002001] APMExperimentAlarm fired
2020-10-06 07:48:26.737650+0100 MessagingExample[349:6246] 6.33.0 - [Firebase/Analytics][I-ACS002003] APMExperimentAlarm canceled
2020-10-06 07:48:26.749023+0100 MessagingExample[349:6241] 6.33.0 - [Firebase/Analytics][I-ACS002002] APMExperimentAlarm scheduled to fire in approx. (s): 14399.98848593235
2020-10-06 07:48:50.923028+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2020-10-06 07:48:50.923098+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2020-10-06 07:48:50.923199+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2020-10-06 07:48:50.924454+0100 MessagingExample[349:6241] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
    engagement_time_msec (_et) = 29883;
    ga_event_origin (_o) = auto;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>04158692;
}
2020-10-06 07:48:50.925469+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 29883;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>04158692;
}
2020-10-06 07:48:50.943261+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
    engagement_time_msec (_et) = 29883;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>04158692;
}
2020-10-06 07:48:50.947818+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.9706219434738159
2020-10-06 07:48:50.948548+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, app_background (_ab), {
    ga_event_origin (_o) = auto;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>04158692;
}
2020-10-06 07:48:50.949260+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>04158692;
}
2020-10-06 07:48:50.954283+0100 MessagingExample[349:6527] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>04158692;
}
2020-10-06 07:48:50.961058+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 29883;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>04158692;
}
2020-10-06 07:48:50.961298+0100 MessagingExample[349:6527] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>04158692;
}
2020-10-06 07:48:50.965981+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: lifetime_user_engagement (_lte), 29884
2020-10-06 07:48:50.966507+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: session_user_engagement (_se), 29884
2020-10-06 07:48:50.970360+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 463
2020-10-06 07:48:50.970494+0100 MessagingExample[349:6527] 6.33.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 3,<PHONE_NUMBER>919
2020-10-06 07:48:50.975040+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data:<PHONE_NUMBER>974, <APMPBMeasurementBatch: 0x280f8c490>
2020-10-06 07:48:50.979346+0100 MessagingExample[349:6251] 6.33.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-10-06 07:48:51.054455+0100 MessagingExample[349:6527] 6.33.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-10-06 07:48:51.103910+0100 MessagingExample[349:6249] 6.33.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-10-06 07:48:51.120325+0100 MessagingExample[349:6241] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-06 07:48:51.120572+0100 MessagingExample[349:6241] 6.33.0 - [Firebase/Analytics][I-ACS023142] Cancelling background upload task. Task ID : 15

Hard close, re-run from xcode. Not working
2020-10-06 07:51:19.852436+0100 MessagingExample[365:7566] 6.33.0 - [Firebase/Core][I-COR000001] Configuring the default app.
2020-10-06 07:51:19.852629+0100 MessagingExample[365:7566] 6.33.0 - [Firebase/Core][I-COR000033] Data Collection flag is not set.
2020-10-06 07:51:19.855344+0100 MessagingExample[365:7566] 6.33.0 - [Firebase/Analytics][I-ACS024000] Debug mode is on
2020-10-06 07:51:19.856785+0100 MessagingExample[365:7562] 6.33.0 - [Firebase/Analytics][I-ACS005000] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at http://goo.gl/9vSsPb
2020-10-06 07:51:19.857520+0100 MessagingExample[365:7562] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:51:19.864296+0100 MessagingExample[365:7562] 6.33.0 - [Firebase/Messaging][I-FCM002000] FIRMessaging library version 4.7.0
2020-10-06 07:51:19.871357+0100 MessagingExample[365:7562] 6.33.0 - [GULReachability][I-REA902003] Monitoring the network status
2020-10-06 07:51:19.900183+0100 MessagingExample[365:7569] 6.33.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2020-10-06 07:51:19.900466+0100 MessagingExample[365:7569] 6.33.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001008] Successfully created App Delegate Proxy automatically. To disable the proxy, set the flag GoogleUtilitiesAppDelegateProxyEnabled to NO (Boolean) in the Info.plist
2020-10-06 07:51:19.900554+0100 MessagingExample[365:7569] 6.33.0 - [GULReachability][I-REA902003] Monitoring the network status
2020-10-06 07:51:19.935804+0100 MessagingExample[365:7570] 6.33.0 - [GULReachability][I-REA902003] Monitoring the network status
2020-10-06 07:51:19.935883+0100 MessagingExample[365:7570] 6.33.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60803000 started
2020-10-06 07:51:19.936288+0100 MessagingExample[365:7570] 6.33.0 - [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2020-10-06 07:51:19.936862+0100 MessagingExample[365:7570] 6.33.0 - [Firebase/Analytics][I-ACS023009] Debug logging enabled
2020-10-06 07:51:19.937243+0100 MessagingExample[365:7570] 6.33.0 - [Firebase/Analytics][I-ACS023207] To enable verbose logging set the following application argument: -FIRAnalyticsVerboseLoggingEnabled (see http://goo.gl/RfcP7r)
2020-10-06 07:51:20.036762+0100 MessagingExample[365:7565] 6.33.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected
2020-10-06 07:51:20.036827+0100 MessagingExample[365:7565] 6.33.0 - [GULReachability][I-REA902004] Network status has changed. Code:1, status:Disconnected
2020-10-06 07:51:20.036854+0100 MessagingExample[365:7565] 6.33.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected
2020-10-06 07:51:20.036901+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/InstanceID][I-IID003012] Provisioning profile has specifically provisioned devices, most likely a Dev profile.
2020-10-06 07:51:20.036958+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/InstanceID][I-IID003013] APNS Environment in profile: development
2020-10-06 07:51:20.036998+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/InstanceID][I-IID014011] Invalidating cached token for<PHONE_NUMBER>0 (*) due to APNs token change.
2020-10-06 07:51:20.037049+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-10-06 07:51:20.037102+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/InstanceID][I-IID023000] Info is not found in Keychain. OSStatus: -25300. Keychain query: {
    acct = "[REMOVED]";
    class = genp;
    gena = "com.google.iid-tokens";
    "m_Limit" = "m_LimitAll";
    "r_Attributes" = 1;
    "r_Data" = 1;
}
2020-10-06 07:51:20.038542+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:51:20.038644+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/InstanceID][I-IID014000] Fetch new token for authorizedEntity:<PHONE_NUMBER>0, scope: *
2020-10-06 07:51:20.038713+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-10-06 07:51:20.038788+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/InstanceID][I-IID014000] Fetch new token for authorizedEntity:<PHONE_NUMBER>0, scope: *
2020-10-06 07:51:20.038857+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-10-06 07:51:20.038935+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:51:20.039076+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS031010] Tracking view controller. Class, ID: ViewController, -715301959687115319
2020-10-06 07:51:20.039143+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: ViewController, -715301959687115319
2020-10-06 07:51:20.045398+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/InstanceID][I-IID020000] Register request to https://fcmtoken.googleapis.com/register content: X-osv=14.0.1&device=5485046919180417257&X-scope=*&plat=2&app=[REMOVED]&app_ver=1.5&X-cliv=fiid-4.7.0&sender=86648024660&X-subtype=86648024660&appid=elEfKSGGgUlDr9DuqNKv57&apns_token=s_846712acd1ff2cf5d58eb17c2bdf5c146913e82d0a79afcb1469b613651b22fd&gmp_app_id=1:86648024660:ios:0f5bfc6cf5109b79aa47c1
2020-10-06 07:51:20.046909+0100 MessagingExample[365:7569] 6.33.0 - [Firebase/Analytics][I-ACS002002] APMExperimentAlarm scheduled to fire in approx. (s): 14226.69022798538
2020-10-06 07:51:20.049946+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-10-06 07:51:20.050116+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS029017] Configuration was not found in database. The configuration will be fetched from the network when necessary
2020-10-06 07:51:20.050829+0100 MessagingExample[365:7571] 6.33.0 - [Firebase/Analytics][I-ACS023016] Analytics is ready to receive events
2020-10-06 07:51:20.056877+0100 MessagingExample[365:7571] 6.33.0 - [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2020-10-06 07:51:20.059231+0100 MessagingExample[365:7571] 6.33.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2020-10-06 07:51:20.059269+0100 MessagingExample[365:7571] 6.33.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2020-10-06 07:51:20.059598+0100 MessagingExample[365:7571] 6.33.0 - [Firebase/Analytics][I-ACS023220] Analytics screen reporting is enabled. Call +[FIRAnalytics logEventWithName:FIREventScreenView parameters:] to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
2020-10-06 07:51:20.060835+0100 MessagingExample[365:7569] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
    ga_event_origin (_o) = auto;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) = -715301959687115319;
}
2020-10-06 07:51:20.061665+0100 MessagingExample[365:7571] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) = -715301959687115319;
}
2020-10-06 07:51:20.067696+0100 MessagingExample[365:7564] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) = -715301959687115319;
}
2020-10-06 07:51:20.069789+0100 MessagingExample[365:7569] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.9577161073684692
2020-10-06 07:51:20.285859+0100 MessagingExample[365:7569] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-10-06 07:51:20.285939+0100 MessagingExample[365:7569] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:51:20.286436+0100 MessagingExample[365:7564] 6.33.0 - [Firebase/InstanceID][I-IID023002] Couldn't delete item from Keychain OSStatus: -25300 with the keychain query {
    acct = "[REMOVED]";
    class = genp;
    gena = "com.google.iid-tokens";
    svce = "86648024660:*";
}
2020-10-06 07:51:20.306235+0100 MessagingExample[365:7564] 6.33.0 - [Firebase/InstanceID][I-IID020000] Register request to https://fcmtoken.googleapis.com/register content: X-osv=14.0.1&device=5485046919180417257&X-scope=*&plat=2&app=[REMOVED]&app_ver=1.5&X-cliv=fiid-4.7.0&sender=86648024660&X-subtype=86648024660&appid=elEfKSGGgUlDr9DuqNKv57&apns_token=s_846712acd1ff2cf5d58eb17c2bdf5c146913e82d0a79afcb1469b613651b22fd&gmp_app_id=1:86648024660:ios:0f5bfc6cf5109b79aa47c1
2020-10-06 07:51:20.310901+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/InstanceID][I-IID014001] Token fetch successful, token: elEfKSGGgUlDr9DuqNKv57:APA91bElhd355HSenoX1kZRNOWvQBGzazMHBd_fB9YN7xwf8ScmTx8tXsm0rLjzX9YNi19ZLLi0wWaaEk94XdE6eShuTVohgQZDSsQn7MufxPZWql3M4ZyxVTedNovEaXa5sBEr4vhx6, authorizedEntity:<PHONE_NUMBER>0, scope:*
2020-10-06 07:51:20.386857+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/InstanceID][I-IID014001] Token fetch successful, token: elEfKSGGgUlDr9DuqNKv57:APA91bElhd355HSenoX1kZRNOWvQBGzazMHBd_fB9YN7xwf8ScmTx8tXsm0rLjzX9YNi19ZLLi0wWaaEk94XdE6eShuTVohgQZDSsQn7MufxPZWql3M4ZyxVTedNovEaXa5sBEr4vhx6, authorizedEntity:<PHONE_NUMBER>0, scope:*
2020-10-06 07:51:20.386842+0100 MessagingExample[365:7539] FCM registration token: elEfKSGGgUlDr9DuqNKv57:APA91bElhd355HSenoX1kZRNOWvQBGzazMHBd_fB9YN7xwf8ScmTx8tXsm0rLjzX9YNi19ZLLi0wWaaEk94XdE6eShuTVohgQZDSsQn7MufxPZWql3M4ZyxVTedNovEaXa5sBEr4vhx6
2020-10-06 07:51:20.394852+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/InstanceID][I-IID003010] Successfully fetched default token.
2020-10-06 07:51:20.395052+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/InstanceID][I-IID003008] Got default token elEfKSGGgUlDr9DuqNKv57:APA91bElhd355HSenoX1kZRNOWvQBGzazMHBd_fB9YN7xwf8ScmTx8tXsm0rLjzX9YNi19ZLLi0wWaaEk94XdE6eShuTVohgQZDSsQn7MufxPZWql3M4ZyxVTedNovEaXa5sBEr4vhx6
2020-10-06 07:51:21.042914+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
2020-10-06 07:51:21.043036+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-06 07:51:21.046478+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) = -715301959687115319;
}
2020-10-06 07:51:21.057281+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 442
2020-10-06 07:51:21.057389+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 4,<PHONE_NUMBER>027
2020-10-06 07:51:21.063678+0100 MessagingExample[365:7569] 6.33.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data:<PHONE_NUMBER>062, <APMPBMeasurementBatch: 0x281584ae0>
2020-10-06 07:51:21.069688+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-10-06 07:51:21.164157+0100 MessagingExample[365:7569] 6.33.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-10-06 07:51:21.229464+0100 MessagingExample[365:7564] 6.33.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-10-06 07:51:21.235083+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.2072640657424927
2020-10-06 07:51:21.241047+0100 MessagingExample[365:7570] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-06 07:51:22.302261+0100 MessagingExample[365:7569] 6.33.0 - [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: ViewController, -715301959687115319
2020-10-06 07:51:22.312874+0100 MessagingExample[365:7539] Local FCM registration token: elEfKSGGgUlDr9DuqNKv57:APA91bElhd355HSenoX1kZRNOWvQBGzazMHBd_fB9YN7xwf8ScmTx8tXsm0rLjzX9YNi19ZLLi0wWaaEk94XdE6eShuTVohgQZDSsQn7MufxPZWql3M4ZyxVTedNovEaXa5sBEr4vhx6
2020-10-06 07:51:22.328427+0100 MessagingExample[365:7539] Returning local object of class NSString
2020-10-06 07:51:22.336903+0100 MessagingExample[365:7569] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:51:22.338647+0100 MessagingExample[365:7539] Remote instance ID token: elEfKSGGgUlDr9DuqNKv57:APA91bElhd355HSenoX1kZRNOWvQBGzazMHBd_fB9YN7xwf8ScmTx8tXsm0rLjzX9YNi19ZLLi0wWaaEk94XdE6eShuTVohgQZDSsQn7MufxPZWql3M4ZyxVTedNovEaXa5sBEr4vhx6
2020-10-06 07:51:22.339247+0100 MessagingExample[365:7569] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-10-06 07:51:25.697365+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2020-10-06 07:51:25.697440+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2020-10-06 07:51:25.697538+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2020-10-06 07:51:25.707916+0100 MessagingExample[365:7564] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
    engagement_time_msec (_et) = 5639;
    ga_event_origin (_o) = auto;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) = -715301959687115319;
}
2020-10-06 07:51:25.709028+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 5639;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) = -715301959687115319;
}
2020-10-06 07:51:25.727871+0100 MessagingExample[365:7564] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
    engagement_time_msec (_et) = 5639;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) = -715301959687115319;
}
2020-10-06 07:51:25.911945+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.7802830934524536
2020-10-06 07:51:25.912499+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, app_background (_ab), {
    ga_event_origin (_o) = auto;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) = -715301959687115319;
}
2020-10-06 07:51:25.914274+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) = -715301959687115319;
}
2020-10-06 07:51:25.922059+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) = -715301959687115319;
}
2020-10-06 07:51:25.993580+0100 MessagingExample[365:7572] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 5639;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) = -715301959687115319;
}
2020-10-06 07:51:25.993823+0100 MessagingExample[365:7572] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) = -715301959687115319;
}
2020-10-06 07:51:26.015094+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: lifetime_user_engagement (_lte), 35523
2020-10-06 07:51:26.015206+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: session_user_engagement (_se), 35523
2020-10-06 07:51:26.016682+0100 MessagingExample[365:7572] 6.33.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 467
2020-10-06 07:51:26.016828+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 5,<PHONE_NUMBER>692
2020-10-06 07:51:26.030754+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data:<PHONE_NUMBER>029, <APMPBMeasurementBatch: 0x281580ea0>
2020-10-06 07:51:26.033033+0100 MessagingExample[365:7572] 6.33.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-10-06 07:51:26.098369+0100 MessagingExample[365:7565] 6.33.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-10-06 07:51:26.144258+0100 MessagingExample[365:7564] 6.33.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-10-06 07:51:26.165360+0100 MessagingExample[365:7564] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-06 07:51:26.165972+0100 MessagingExample[365:7564] 6.33.0 - [Firebase/Analytics][I-ACS023142] Cancelling background upload task. Task ID : 12

Second hard close, re-run from xcode. Working
2020-10-06 07:53:08.517229+0100 MessagingExample[397:9183] 6.33.0 - [Firebase/Core][I-COR000001] Configuring the default app.
2020-10-06 07:53:08.517288+0100 MessagingExample[397:9183] 6.33.0 - [Firebase/Core][I-COR000033] Data Collection flag is not set.
2020-10-06 07:53:08.520387+0100 MessagingExample[397:9184] 6.33.0 - [Firebase/Analytics][I-ACS024000] Debug mode is on
2020-10-06 07:53:08.548165+0100 MessagingExample[397:9180] 6.33.0 - [Firebase/Analytics][I-ACS005000] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at http://goo.gl/9vSsPb
2020-10-06 07:53:08.549711+0100 MessagingExample[397:9178] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:53:08.550816+0100 MessagingExample[397:9178] 6.33.0 - [GULReachability][I-REA902003] Monitoring the network status
2020-10-06 07:53:08.552143+0100 MessagingExample[397:9185] 6.33.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60803000 started
2020-10-06 07:53:08.552399+0100 MessagingExample[397:9185] 6.33.0 - [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2020-10-06 07:53:08.572077+0100 MessagingExample[397:9185] 6.33.0 - [Firebase/Analytics][I-ACS023009] Debug logging enabled
2020-10-06 07:53:08.572237+0100 MessagingExample[397:9185] 6.33.0 - [Firebase/Analytics][I-ACS023207] To enable verbose logging set the following application argument: -FIRAnalyticsVerboseLoggingEnabled (see http://goo.gl/RfcP7r)
2020-10-06 07:53:08.572486+0100 MessagingExample[397:9185] 6.33.0 - [GULReachability][I-REA902003] Monitoring the network status
2020-10-06 07:53:08.597872+0100 MessagingExample[397:9175] 6.33.0 - [Firebase/Messaging][I-FCM002000] FIRMessaging library version 4.7.0
2020-10-06 07:53:08.598508+0100 MessagingExample[397:9175] 6.33.0 - [GULReachability][I-REA902003] Monitoring the network status
2020-10-06 07:53:08.599899+0100 MessagingExample[397:9180] 6.33.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2020-10-06 07:53:08.600652+0100 MessagingExample[397:9180] 6.33.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001008] Successfully created App Delegate Proxy automatically. To disable the proxy, set the flag GoogleUtilitiesAppDelegateProxyEnabled to NO (Boolean) in the Info.plist
2020-10-06 07:53:08.611018+0100 MessagingExample[397:9185] 6.33.0 - [Firebase/Analytics][I-ACS002002] APMExperimentAlarm scheduled to fire in approx. (s): 14118.1262229681
2020-10-06 07:53:08.626611+0100 MessagingExample[397:9185] 6.33.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-10-06 07:53:08.626754+0100 MessagingExample[397:9185] 6.33.0 - [Firebase/Analytics][I-ACS029017] Configuration was not found in database. The configuration will be fetched from the network when necessary
2020-10-06 07:53:08.627548+0100 MessagingExample[397:9180] 6.33.0 - [Firebase/Analytics][I-ACS023016] Analytics is ready to receive events
2020-10-06 07:53:08.661777+0100 MessagingExample[397:9152] FCM registration token: elEfKSGGgUlDr9DuqNKv57:APA91bElhd355HSenoX1kZRNOWvQBGzazMHBd_fB9YN7xwf8ScmTx8tXsm0rLjzX9YNi19ZLLi0wWaaEk94XdE6eShuTVohgQZDSsQn7MufxPZWql3M4ZyxVTedNovEaXa5sBEr4vhx6
2020-10-06 07:53:08.663458+0100 MessagingExample[397:9183] 6.33.0 - [GULReachability][I-REA902004] Network status has changed. Code:1, status:Disconnected
2020-10-06 07:53:08.663956+0100 MessagingExample[397:9183] 6.33.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected
2020-10-06 07:53:08.664253+0100 MessagingExample[397:9183] 6.33.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected
2020-10-06 07:53:08.664321+0100 MessagingExample[397:9183] 6.33.0 - [Firebase/InstanceID][I-IID003012] Provisioning profile has specifically provisioned devices, most likely a Dev profile.
2020-10-06 07:53:08.664662+0100 MessagingExample[397:9183] 6.33.0 - [Firebase/InstanceID][I-IID003013] APNS Environment in profile: development
2020-10-06 07:53:08.665341+0100 MessagingExample[397:9183] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-10-06 07:53:08.666008+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS031010] Tracking view controller. Class, ID: ViewController,<PHONE_NUMBER>444720459
2020-10-06 07:53:08.666058+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: ViewController,<PHONE_NUMBER>444720459
2020-10-06 07:53:08.670965+0100 MessagingExample[397:9183] 6.33.0 - [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2020-10-06 07:53:08.672676+0100 MessagingExample[397:9178] 6.33.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2020-10-06 07:53:08.672728+0100 MessagingExample[397:9178] 6.33.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2020-10-06 07:53:08.673065+0100 MessagingExample[397:9178] 6.33.0 - [Firebase/Analytics][I-ACS023220] Analytics screen reporting is enabled. Call +[FIRAnalytics logEventWithName:FIREventScreenView parameters:] to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
2020-10-06 07:53:08.674992+0100 MessagingExample[397:9183] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
    ga_event_origin (_o) = auto;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>444720459;
}
2020-10-06 07:53:08.676708+0100 MessagingExample[397:9178] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>444720459;
}
2020-10-06 07:53:08.685375+0100 MessagingExample[397:9178] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>444720459;
}
2020-10-06 07:53:08.687647+0100 MessagingExample[397:9184] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.9720389842987061
2020-10-06 07:53:09.724078+0100 MessagingExample[397:9178] 6.33.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
2020-10-06 07:53:09.724228+0100 MessagingExample[397:9178] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-06 07:53:09.728726+0100 MessagingExample[397:9184] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>444720459;
}
2020-10-06 07:53:09.742155+0100 MessagingExample[397:9178] 6.33.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 442
2020-10-06 07:53:09.743154+0100 MessagingExample[397:9184] 6.33.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 7,<PHONE_NUMBER>659
2020-10-06 07:53:09.750300+0100 MessagingExample[397:9178] 6.33.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data:<PHONE_NUMBER>749, <APMPBMeasurementBatch: 0x2805c8a80>
2020-10-06 07:53:09.756614+0100 MessagingExample[397:9184] 6.33.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-10-06 07:53:09.833204+0100 MessagingExample[397:9184] 6.33.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-10-06 07:53:09.898568+0100 MessagingExample[397:9178] 6.33.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-10-06 07:53:09.903160+0100 MessagingExample[397:9184] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.2435420751571655
2020-10-06 07:53:09.906986+0100 MessagingExample[397:9184] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-06 07:53:15.028218+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: ViewController,<PHONE_NUMBER>444720459
2020-10-06 07:53:15.124163+0100 MessagingExample[397:9152] Local FCM registration token: elEfKSGGgUlDr9DuqNKv57:APA91bElhd355HSenoX1kZRNOWvQBGzazMHBd_fB9YN7xwf8ScmTx8tXsm0rLjzX9YNi19ZLLi0wWaaEk94XdE6eShuTVohgQZDSsQn7MufxPZWql3M4ZyxVTedNovEaXa5sBEr4vhx6
2020-10-06 07:53:15.143736+0100 MessagingExample[397:9152] Returning local object of class NSString
2020-10-06 07:53:15.159121+0100 MessagingExample[397:9184] 6.33.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2020-10-06 07:53:15.163440+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2020-10-06 07:53:15.163925+0100 MessagingExample[397:9152] Remote instance ID token: elEfKSGGgUlDr9DuqNKv57:APA91bElhd355HSenoX1kZRNOWvQBGzazMHBd_fB9YN7xwf8ScmTx8tXsm0rLjzX9YNi19ZLLi0wWaaEk94XdE6eShuTVohgQZDSsQn7MufxPZWql3M4ZyxVTedNovEaXa5sBEr4vhx6
2020-10-06 07:53:16.413995+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2020-10-06 07:53:16.414260+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2020-10-06 07:53:16.414523+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2020-10-06 07:53:16.414794+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
    engagement_time_msec (_et) = 7773;
    ga_event_origin (_o) = auto;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>444720459;
}
2020-10-06 07:53:16.415700+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 7773;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>444720459;
}
2020-10-06 07:53:16.430806+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
    engagement_time_msec (_et) = 7773;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>444720459;
}
2020-10-06 07:53:16.433912+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.9682350158691406
2020-10-06 07:53:16.435134+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, app_background (_ab), {
    ga_event_origin (_o) = auto;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>444720459;
}
2020-10-06 07:53:16.435284+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>444720459;
}
2020-10-06 07:53:16.440273+0100 MessagingExample[397:9179] 6.33.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>444720459;
}
2020-10-06 07:53:16.444728+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 7773;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>444720459;
}
2020-10-06 07:53:16.444835+0100 MessagingExample[397:9179] 6.33.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: app_background (_ab), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    ga_screen_class (_sc) = ViewController;
    ga_screen_id (_si) =<PHONE_NUMBER>444720459;
}
2020-10-06 07:53:16.447503+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: lifetime_user_engagement (_lte), 44937
2020-10-06 07:53:16.447911+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS023087] User property set. Name, value: session_user_engagement (_se), 44937
2020-10-06 07:53:16.451374+0100 MessagingExample[397:9179] 6.33.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 468
2020-10-06 07:53:16.451525+0100 MessagingExample[397:9179] 6.33.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 8,<PHONE_NUMBER>402
2020-10-06 07:53:16.455623+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data:<PHONE_NUMBER>455, <APMPBMeasurementBatch: 0x2805c0ab0>
2020-10-06 07:53:16.458617+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2020-10-06 07:53:16.519654+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2020-10-06 07:53:16.567426+0100 MessagingExample[397:9182] 6.33.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2020-10-06 07:53:16.582791+0100 MessagingExample[397:9214] 6.33.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2020-10-06 07:53:16.583002+0100 MessagingExample[397:9214] 6.33.0 - [Firebase/Analytics][I-ACS023142] Cancelling background upload task. Task ID : 12

@tomkelsey Awesome! Thank you for testing it. I'm able to reproduce based on your trick. The latest fix should resolve your problem.

@chliangGoogle Perfect, thank you. I've just tested it and it appears to be working well! 🎉
On a somewhat related note, there does appear to be a delay in the APNS stuff after restarting a device.
If you uninstall the app, restart the device then almost immediately run the app from xcode there was, for me, almost a 10 second delay before the APNS stuff kicked in.
If I background the app too quickly (before the ~10 second mark) sending a message via firebase still doesn't work (as presumably the APNS bits aren't linked up?). But foregrounding the app again seems to allow it to catch up and link everything up properly. This is much better than before as it doesn't require a hard restart of the app.
Also, if you restart the device and wait for a period of time before running from xcode the APNS stuff is pretty much instant.
So it seems unlikely it would be an issue very often in "real life" but is perhaps worth documenting/mentioning somewhere as could well be run into when testing and not realising a delay is potentially required after a restart?
Thanks again for for your (and everyone else's) help in resolving this 👍


xpath with variables - crashes when variables need type conversion

xpath with variables - crashes when variables need type conversion.
For example xpath like this:
number($var1) = number($var2)
will crash if either var1 or var2 is not number.
This happens because the code in the following functions:
eval_number, eval_string, eval_boolean
only return value if var does not need conversion, causing the crash after it.
For example,		double eval_number(const xpath_context& c, const xpath_stack& stack)
			case ast_variable:
			{
				assert(_rettype == _data.variable->type());
				if (_rettype == xpath_type_number)
					return _data.variable->get_number();
			}

I changed it like below:
			case ast_variable:
			{
				assert(_rettype == _data.variable->type());

				switch (_rettype)
				{
				case xpath_type_boolean:
					return _data.variable->get_boolean() ? 1 : 0;
				case xpath_type_number:
					return _data.variable->get_number();
				case xpath_type_string:
					return convert_string_to_number(_data.variable->get_string());
				case xpath_type_node_set:
				{
					const xpath_node_set & ns = _data.variable->get_node_set();
					xpath_allocator_capture cr(stack.result);
					return ns.empty() ? gen_nan() : convert_string_to_number(string_value(ns.first(), stack.result).c_str());
				}
				default:
					assert(false && "Wrong expression for return type number"); // unreachable
					return 0;
				}
			}

And similarly other 2 functions.
Verified it is working after the change.
Thank you.

So I've just added a test for the conversion (https://github.com/zeux/pugixml/commit/85a39b955d353b4db3bafc044b01fbdac43e5183) and it passes. I don't quite understand the problem.
Note that ast_variable is the last statement before the default. When the type mismatches, it intentionally falls through to default label which handles the type conversion. Can you share the source for pugixml.cpp that you are using?

OK sorry it was my bug, I added my own xpath function as the last case in the switch (after ast_variable), it caused the bug as ast_variable MUST be the last before default, otherwise it will fall to the case after it (the function I added).
I think some comment is needed there that ast_variable must be last, as it is somewhat confusing...
Thank you.

I think some comment is needed there that ast_variable must be last, as it is somewhat

Yeah, I added the comment in master to highlight the fall through a bit more.