Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fcm sample app using autoFetchDeviceToken #592

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ami-aman
Copy link
Contributor

@ami-aman ami-aman commented Mar 6, 2024

About the PR

Based on our recent discussion, concerns were raised about the functionality of the autoFetchDeviceToken property within SwiftUI applications. While there haven't been any reported user issues, but it was assumed that the feature does not work as expected in SwiftUI.

While being on-call and working on SwiftUI Sample app, I also investigated autoFetchDeviceToken propert. The feature functions as intended when implemented correctly. Successful tests were done with both APN and FCM on SwiftUI app. However, this pull request focuses solely on FCM integration, as the SwiftUI iOS Sample app utilizes FCM and CocoaPods.

About the fix

The fix to make the feature work in SwiftUI apps required some tweaks in AppDelegate file. There have been no major changes but few implementation changes. After the tweaks made, the feature worked smoothly with SwiftUI sample app.

Tests

This user's device on fly has been registered after making the updates.

Copy link

github-actions bot commented Mar 6, 2024

Sample app builds 📱

Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.


  • CocoaPods-FCM: aman/fcm-autofetchdevicetoken (1709730128)
  • APN-UIKit: aman/fcm-autofetchdevicetoken (1709730109)

Copy link

codecov bot commented Mar 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.79%. Comparing base (ac70292) to head (d3813e7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #592      +/-   ##
==========================================
+ Coverage   56.41%   56.79%   +0.37%     
==========================================
  Files         132      132              
  Lines        3717     3717              
==========================================
+ Hits         2097     2111      +14     
+ Misses       1620     1606      -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Ahmed-Ali Ahmed-Ali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving back to request changes till the merge conflicts are resolved

@Ahmed-Ali Ahmed-Ali marked this pull request as draft June 13, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants