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

PushNotificationIOS Cannot read property 'requestPermissions' of undefined #954

Closed
qingfeng opened this issue Apr 21, 2015 · 4 comments
Closed
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@qingfeng
Copy link
Contributor

image

What is the reason? thanks....

@qingfeng
Copy link
Contributor Author

class indexContent extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      tabIndex: 1,
    };
  }

  componentWillMount() {
    PushNotificationIOS.addEventListener('notification', this._onNotification);
  }

  componentWillUnmount() {
    PushNotificationIOS.removeEventListener('notification', this._onNotification);
  }


  render() {
    PushNotificationIOS.requestPermissions();
    return (
      <TabBarIOS>
        <TabBarIOS.Item
    .......

@qingfeng
Copy link
Contributor Author

Resolved. . .

look please, The document did not write

image

image

@lazywei
Copy link

lazywei commented May 6, 2015

thanks .... this should be added into document ...........

@ohadperry
Copy link

@qingfeng your answer is not clear, what should be added and from where should I add it ?
thanks

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants