Skip to content

Use of undeclared identifier 'Localytics'; #22

Description

@sujithln

I am using react native version "react-native": "0.68.5", and "localytics-react-native": "3.2.7".
I have tried both javascript and typescript templates, this issue is there. I have followed https://help.uplandsoftware.com/localytics/dev/react-native.html#react-native
In the AppDelegate.mm file I have added the following code.

[Localytics autoIntegrate:@"YOUR-LOCALYTICS-APP-KEY"
withLocalyticsOptions:@{
LOCALYTICS_WIFI_UPLOAD_INTERVAL_SECONDS: @5,
LOCALYTICS_GREAT_NETWORK_UPLOAD_INTERVAL_SECONDS: @10,
LOCALYTICS_DECENT_NETWORK_UPLOAD_INTERVAL_SECONDS: @30,
LOCALYTICS_BAD_NETWORK_UPLOAD_INTERVAL_SECONDS: @90
}
launchOptions:launchOptions];

Issue : Use of undeclared identifier 'Localytics'; did you mean 'localtime'?

PLease check the following screenshot:

Screenshot 2023-02-23 at 11 06 29 AM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions