firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

In app messaging doesn't work in version 10.28.1

Open Tulakshana opened this issue 1 year ago • 3 comments

Description

In app messaging doesn't work in version 10.28.1

Reproducing the issue

Steps to reproduce

  1. Install Firebase version 10.28.1 using cocoapods pod 'Firebase/Messaging', '10.28.1' pod 'Firebase/RemoteConfig', '10.28.1' pod 'Firebase/Auth', '10.28.1' pod 'Firebase/Crashlytics', '10.28.1' pod 'Firebase/Analytics', '10.28.1' pod 'Firebase/InAppMessaging', '10.28.1' #beta pod 'Firebase/Performance', '10.28.1'
  2. Go to in app messaging in the firebase console and create a new in app messaging campaign
  3. Install the new version of the app with Firebase 10.28.1 in a real device
  4. Run the app
  5. Copy the firebase installation id Installations.installations().installationID { [weak self] (id, error) in }
  6. Use the copied installation id to send a test in app message using the campaign you created in step 2

Expected result Receive the in app message

Actual result Does not receive the in app message

Firebase SDK Version

10.28.1

Xcode Version

15.3

Installation Method

CocoaPods

Firebase Product(s)

Analytics, Authentication, Crashlytics, In-App Messaging, Messaging, Performance, Remote Config

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

No response

If using CocoaPods, the project's Podfile.lock

platform :ios, '15.0'

inhibit_all_warnings!

use_frameworks!

pod 'Firebase/Messaging', '10.28.1' pod 'Firebase/RemoteConfig', '10.28.1' pod 'Firebase/Auth', '10.28.1' pod 'Firebase/Crashlytics', '10.28.1' pod 'Firebase/Analytics', '10.28.1' pod 'Firebase/InAppMessaging', '10.28.1' #beta pod 'Firebase/Performance', '10.28.1'

target 'MyApp' do end

target 'MyAppTests' do end

post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' config.build_settings['ENABLE_BITCODE'] = 'NO' config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' end end end

Tulakshana avatar Jun 26 '24 21:06 Tulakshana

Hi @Tulakshana, I wasn't able to reproduce the issue. May I know if you're clicking the Test on device button in the campaign before opening the app?

rizafran avatar Jun 27 '24 15:06 rizafran

Yes. The template I used was the one with the image, text and CTA which appears at the centre of the screen.

Tulakshana avatar Jun 27 '24 15:06 Tulakshana

Thanks for the reply, @Tulakshana. I can't seem to reproduce the issue. Could you confirm if it's also reproducible using a simulator on your end?

rizafran avatar Jun 28 '24 12:06 rizafran

Mmm… it worked fine on the simulator. The simulator I used was iPhone 15 Pro (iOS 17.4). My real device is an iPhone XR running iOS 16.2. I tested an iPhone XR simulator (iOS 16.2) too and it worked fine. I’m using Xcode 15.3. The only way I can get the message on my real device is by switching to version 10.28.0

Tulakshana avatar Jul 01 '24 15:07 Tulakshana

The Podfile.lock file may provide a clue.

paulb777 avatar Jul 01 '24 16:07 paulb777

Hey @Tulakshana. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Jul 09 '24 01:07 google-oss-bot

@paulb777 podfile.md

Tulakshana avatar Jul 10 '24 21:07 Tulakshana

The issue seems to be fixed in version 10.29.0

Tulakshana avatar Jul 10 '24 22:07 Tulakshana