xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

[FIR Inapp-Messaging] Bundle resource is missing #406

Open nguyenconghau opened 4 years ago

nguyenconghau commented 4 years ago

Hi,

I already integrated inapp-messaging sdk to xamarin iOS project I added --argument=-FIRDebugEnabled to Extra mlaunch Arguments And I saw the log [Firebase/InAppMessaging][I-IAM900008] A test message with id 15435388433417109504 was parsed successfully. but I cannot display the campaign dialog and it threw the below log Please help me fix this one Thanks

I am using Xcode 11.4.1 and visuals studio 8.4.5

2020-05-05 16:28:42.714054+0700 TestInapp.iOS[8038:89197] 6.22.0 - [Firebase/InAppMessagingDisplay][I-FID100007] FIAM Display Resource bundle is missing: not contained within bundle NSBundle <../../Developer/CoreSimulator/Devices/052647AC-100D-4316-BB67-B30262A9FD66/data/Containers/Bundle/Application/7C2CFD4F-63A9-4557-A97B-4D90AE5425E2/TestInapp.iOS.app> (loaded) 2020-05-05 16:28:47.405539+0700 TestInapp.iOS[8038:89141] Resource bundle is missing.

jjchiw commented 4 years ago

Hi

I have the same error :(

I tested in a device too, same error, but it doesn't display the alert...

I added this line in Firebase.InAppMessaging.InAppMessaging.SharedInstance.Init(); in AppDelegate.FinishedLaunching

It's a Xamarin.Forms App

6.22.0 - [Firebase/InAppMessaging][I-IAM900008] A test message with id 8588579993674579968 was parsed successfully.

6.22.0 - [Firebase/InAppMessagingDisplay][I-FID100007] FIAM Display Resource bundle is missing: not contained within bundle NSBundle </Users/jjchiw/Library/Developer/CoreSimulator/Devices/E430A26A-E168-4D29-AE46-015F24353281/data/Containers/Bundle/Application/AA187191-9E59-4651-9143-66B467338DC9

Visual Studio Community 2019 for Mac
Version 8.6 (build 4520)
Xamarin.iOS
Version: 13.18.1.31 (Visual Studio Community)
=== Apple Developer Tools ===

Xcode 11.5 (16139)
Build 11E608c
Xamarin.Firebase.iOS.InAppMessaging -- 0.19.2.1

image

image

image

jjchiw commented 4 years ago

Which gave a hint that there is a mistake while copying file & found out that in Copy pod resource section flag for Run script only when installing was checked. Unchecked it, the app didn't crash for missing bundle

https://github.com/firebase/firebase-ios-sdk/issues/3090

nguyenconghau commented 4 years ago

@jjchiw I already known root cause, We cannot use the default layout of firebase InAppMessaging to display the message. I tried to customize the layout , it's ok now You can refer to this link https://firebase.google.com/docs/in-app-messaging/customize-messages

RiskScout commented 3 years ago

Hi, Guys, is there a working In-App Messaging example for XamariniOS somewhere?

eshap20 commented 3 years ago

Hello guys, I am working with Xamarin.iOS framework and added below NuGet Packages for Firebase InApp Messaging.

Screenshot 2021-01-28 at 3 43 50 PM

  1. Added Package to the app
  2. Added Firebase.Core.App.Configure(); in the Appdelegate.cs file.
  3. Set --argument=-FIRDebugEnabled to Extra mlaunch Arguments

not getting instance id message, and bundle missing error is coming. ` 6.34.0 - [Firebase/InAppMessagingDisplay][I-FID100007] FIAM Display Resource bundle is missing: not contained within bundle NSBundle </Users/user123/Library/Developer/CoreSimulator/Devices/09C72460-CCAD-4959-B1B2-7CCCDC493C2C/data/Containers/Bundle/Application/98662334-40FC-43DE-954A-E60CBE91D81E/iOSApp.app> (loaded)

`

There are doc to create custom component for Firebase Inapp Message display, What about Xamarin.iOS. Any help will be appreciated a lot.

Thanks

eshap20 commented 3 years ago

@nguyenconghau , Can you please give any example link for Xamarin.iOS to customize the Messaging Display layout ?

AlejandroLemusR commented 2 years ago

@nguyenconghau , Can you please give any example link for Xamarin.iOS to customize the Messaging Display layout ?

@nguyenconghau , Can you please give any example link for Xamarin.iOS to customize the Messaging Display layout ?

Hello, were you able to find a solution?