Closed amrgetment closed 1 month ago
Hi @amrgetment Few things
⛔ Couldn't remove listener from GoRouter's nested branch. Seems like the listener is different then the one added.
please ignore it we are working on new (one line integration that will be much simpler then the current one and this logs will be removed)PendoNavigationObserver()
from the observers
we have explained it Flutter Integration ,( Now looking at it maybe our doc wasn't that clear, We will fix it with new integration.)3. Important PendoScan: primaryFocusHash is 0, might cause issues with current scan PendoFlutterPlugin method name: screenChanged
that log is not so good
Few words of explanation:
In general we are scaning the area under the primary focus to get click analytics on the page.
By default, we are using primary focus as staring point for the scan of clickable elements and features for the analytics .
So first question why would primary focus will be null in your app?
(WidgetsBinding.instance.focusManager.primaryFocus
why would that be null?)
Do you use builder
callback in your Material app? (I have seen some issues with that callback and primary focus)
(as a side note: we are working on a new more precise and efficient way to scan the relevant route without the dependency on primary focus)
Thanks
@MikePendo Yes I have builder before Material.router
,
when do you expect to scan the relevant route without the dependency on primary focus?
@override
Widget build(BuildContext context) => PendoActionListener(
child: AppRepositoriesProvider(
child: AppBlocProvider(
child: Builder(
builder: (BuildContext context) => MultiBlocListener(
listeners: [ ],
child: ScreenUtilInit(
builder: (_, __) => KeyboardVisibilityProvider(
child: MaterialApp.router(
I followed proguard in the following guide for Android but I got the following error
https://github.com/pendo-io/pendo-mobile-sdk/blob/master/android/pnddocs/pendo-proguard.cfg
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/navigation/NavController$OnDestinationChangedListener
@amrgetment, we are checking the issue you have with a proguard... Please tell us as more details as possible:
android/app/bulid.gradle
dependencies and their versions?android/app/bulid.gradle
configurations? Thanks.
@amrgetment
We are working to avoid that dependency on primaryFocus. I really hope we will be bale to do it in 3.4.
I saw that issue for one client in the builder
of MaterialApp
do you use that builder.
@MikePendo Yes I need that builder to pass the context from the blocs to the child
AppRepositoriesProvider(
child: AppBlocProvider(
child: Builder(
builder: (BuildContext context) =>
otherwise, I will get an error
Error: Could not find the correct Provider<ThemeBloc> above this App Widget
I will wait next release 3.4 or 3.5 if possible
Thanks for your efforts
@DavidPendo I found that the proguard issue happened for Android API 27 or less but not on API 29, so it is not an issue for me as I have min SDK API 29
Any expectation for when 3.4 will be released
mid September, that will be the GA
We have a design partner program, in that case we can provide you with a beta build much earlier
@amrgetment
maybe you can share some insight why would you primary focus might be null
WidgetsBinding.instance.focusManager.primaryFocus
why the following might be null in your app?
I don't know the reason but it is nullable anyway
FocusNode? get primaryFocus => _primaryFocus;
https://api.flutter.dev/flutter/widgets/FocusManager/primaryFocus.html
Yes, I ok with joining the partner program to test the beta for you
Platform + Version Android 13
SDK Version pendo_sdk: ^3.3.2
Framework e.g Native, SwiftUI,
Flutter 3.24.0
Describe the bug I got some errors while integrating Pendo for Android Flutter
Couldn't remove listener from GoRouter's nested branch
PendoScan: primaryFocusHash is 0, might cause issues with current scan
Retro Element Info NOT FOUND
To Reproduce Steps to reproduce the behavior: Check the sample code section
Expected behavior No errors
Logs
PendoFlutterPlugin method name: setup PendoFlutterPlugin method name: track PendoFlutterPlugin method name: startSession [Pendo] [20:28:02.394] ⛔ Couldn't remove listener from GoRouter's nested branch. Seems like the listener is different then the one added.
✅ Pendo Mobile SDK was successfully integrated and connected to the server. You can start adding guides to your app in our web console.
App version identified: '1.1.25' SDK version identified: '3.3.0.8585' Plugin version identified: '3.3.2'
PendoFlutterPlugin method name: screenChanged PendoFlutterPlugin method name: sendAction PendoFlutterPlugin method name: sendAction flutter: [Pendo] [20:28:45.303] ❗️ PendoScan: primaryFocusHash is 0, might cause issues with current scan PendoFlutterPlugin method name: screenChanged flutter: [Pendo] [20:28:45.353] ⛔ Retro Element Info NOT FOUND!
Sample Code In main.dart
and for app.dart
and for go router