Skip to content

cannot find symbol startForeground(FOREGROUND_SERVICE_TYPE_MICROPHONE, notification); #327

@ajitdas123

Description

@ajitdas123

Bug report

  • I've checked the example to reproduce the issue.

At the time building the app, the package throwing error saying

/Users/ad/MY COOL APP/node_modules/react-native-callkeep/android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java:59: error: cannot find symbol
import static android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE;
^
  symbol:   static FOREGROUND_SERVICE_TYPE_MICROPHONE
  location: class ServiceInfo

/Users/ad/MY COOL APP/node_modules/react-native-callkeep/android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java:251: error: cannot find symbol
        startForeground(FOREGROUND_SERVICE_TYPE_MICROPHONE, notification);
                        ^
  symbol:   variable FOREGROUND_SERVICE_TYPE_MICROPHONE
  location: class VoiceConnectionService
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
  • Reproduced on:
  • Android
  • iOS

Description

Steps to Reproduce

Install the package, follow the installation process https://github.com/react-native-webrtc/react-native-callkeep/blob/master/docs/android-installation.md

Versions

- Callkeep: "^4.0.0"
- React Native: "0.63.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions