Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NowPlayingTemplate Is Not Working #185

Open
syedslegend786 opened this issue May 29, 2024 · 2 comments
Open

NowPlayingTemplate Is Not Working #185

syedslegend786 opened this issue May 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@syedslegend786
Copy link

syedslegend786 commented May 29, 2024

I have a working react native audio podcast player app, built using React Native Track Player.
My client requested to allow app to run in Android Auto. I came to know about this library. I was exploring, but the main template
NowPlayingTemplate is not working. When i push template the app stop running and closed.

This is my code:

const template = new NowPlayingTemplate({
      buttons: [
        {
          id: 'foo',
          type: 'more',
        },
        {
          id: 'demo',
          type: 'playback',
        },
        {
          id: 'baz',
          type: 'image',
          image: require('../images/star.png'),
        },
      ],
      albumArtistButtonEnabled: true,
      upNextButtonTitle: 'Tester',
      upNextButtonEnabled: false,
      onUpNextButtonPressed() {
        console.log('up next was pressed');
      },
      onButtonPressed(e) {
        console.log(e);
      },
    });
    CarPlay.enableNowPlaying(true);
    CarPlay.pushTemplate(template);
@syedslegend786 syedslegend786 added the bug Something isn't working label May 29, 2024
@prince-d-simform
Copy link

Same thing. I'm also not able to create NowPlayingTemplate.

@DigenPrimeApps
Copy link

@birkir Is there any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants