Skip to content

Add User Messaging Platform iOS support #1412

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

Merged
merged 30 commits into from
Aug 18, 2023

Conversation

jonsimantov
Copy link
Contributor

@jonsimantov jonsimantov commented Aug 3, 2023

Description

Provide details of the change, and generalize the change in the PR title above.

Add iOS implementation of GMA UMP SDK.


Testing

Describe how you've tested these changes. Link any manually triggered Integration tests or CPP binary SDK Packaging Github Action workflows, if applicable.

Integration tests in this PR, and also run locally.


Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

Notes

  • Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
  • Read the contribution guidelines CONTRIBUTING.md.
  • Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.

@jonsimantov jonsimantov changed the title Add iOS files, copies of stubs for now. Add User Messaging Protocol iOS support Aug 3, 2023
@jonsimantov jonsimantov changed the title Add User Messaging Protocol iOS support Add User Messaging Platform iOS support Aug 3, 2023
@github-actions github-actions bot added the tests: in-progress This PR's integration tests are in progress. label Aug 3, 2023
@github-actions
Copy link

github-actions bot commented Aug 3, 2023

❌  Integration test FAILED

Requested by @jonsimantov on commit 890e829
Last updated: Fri Aug 18 14:07 PDT 2023
View integration test log & download artifacts

Failures Configs
app_check [TEST] [FLAKINESS] [Android] [1/3 os: macos] [1/2 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT
auth [TEST] [FLAKINESS] [Android] [1/3 os: ubuntu] [1/2 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT
firestore [TEST] [FLAKINESS] [Android] [1/3 os: windows] [1/2 android_device: android_target]
(1 failed tests)  CRASH/TIMEOUT
gma [TEST] [FAILURE] [iOS] [macos] [1/2 ios_device: simulator_target]
(5 failed tests)  FirebaseGmaTest.TestAdViewErrorBadAdUnitId
  FirebaseGmaTest.TestInterstitialAdErrorBadAdUnitId
  FirebaseGmaTest.TestNativeAdErrorBadAdUnitId
  FirebaseGmaTest.TestRewardedAdErrorBadAdUnitId
  FirebaseGmaUmpTest.TestUmpLoadForm
messaging [TEST] [FLAKINESS] [Android] [1/3 os: ubuntu] [1/2 android_device: android_target]
(1 failed tests)  CRASH/TIMEOUT
storage [TEST] [FAILURE] [iOS] [macos] [1/2 ios_device: simulator_target]
(1 failed tests)  FirebaseStorageTest.TestWriteAndReadCustomContentType

Add flaky tests to go/fpl-cpp-flake-tracker

@github-actions github-actions bot added the tests: succeeded This PR's integration tests succeeded. label Aug 3, 2023
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Aug 3, 2023
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. tests: failed This PR's integration tests failed. and removed tests: succeeded This PR's integration tests succeeded. labels Aug 10, 2023
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Aug 10, 2023
@jonsimantov jonsimantov marked this pull request as ready for review August 15, 2023 01:48
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. and removed tests: failed This PR's integration tests failed. labels Aug 15, 2023
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. and removed tests: failed This PR's integration tests failed. labels Aug 16, 2023
@github-actions github-actions bot added the tests: succeeded This PR's integration tests succeeded. label Aug 16, 2023
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Aug 16, 2023
@@ -6,6 +6,7 @@ use_frameworks! :linkage => :static
target 'integration_test' do
pod 'Firebase/CoreOnly', '10.13.0'
pod 'Google-Mobile-Ads-SDK', '10.9.0'
pod 'GoogleUserMessagingPlatform', '2.1.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

Any changes need to be done to the update scripts so this gets updated automatically?

@@ -2818,12 +2889,12 @@ TEST_F(FirebaseGmaUmpTest, TestCanRequestAdsEEA) {
using firebase::gma::ump::ConsentRequestParameters;
using firebase::gma::ump::ConsentStatus;

TEST_REQUIRES_USER_INTERACTION;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do these no longer need user interaction?

Copy link
Contributor Author

@jonsimantov jonsimantov Aug 17, 2023

Choose a reason for hiding this comment

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

Because I was able to add GetDebugDeviceId() to our test framework, so it can specify the debug settings even on FTL hardware.

The ones that show the consent form and/or the privacy form still do require user interaction, though.

Return existing instance rather than creating new instance of internal class.
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. and removed tests: succeeded This PR's integration tests succeeded. labels Aug 17, 2023
@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Aug 17, 2023
@github-actions github-actions bot added tests: succeeded This PR's integration tests succeeded. and removed tests: failed This PR's integration tests failed. labels Aug 17, 2023
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Aug 17, 2023
@jonsimantov jonsimantov merged commit 890e829 into feature_branch/ump-sdk Aug 18, 2023
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. tests: failed This PR's integration tests failed. and removed tests: succeeded This PR's integration tests succeeded. labels Aug 18, 2023
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Aug 18, 2023
@firebase firebase locked and limited conversation to collaborators Sep 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tests: failed This PR's integration tests failed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants