Giter Club home page Giter Club logo

amazon-pinpoint-developer-guide's Introduction

amazon-pinpoint-developer-guide's People

Contributors

austinwebber avatar bizshuk avatar brentataws avatar hyandell avatar jmatah avatar joshbean avatar julieso avatar marcib-aws avatar mikeapted avatar mwunderl avatar nageshgurram12 avatar nitheesh-me avatar rlatino avatar shortjared avatar stsctta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-pinpoint-developer-guide's Issues

Open app on notification tap

When the user tap on the notification, the default action should be "open app". That's indeed the action that I select when I create a campaign from Pinpoint.

Unfortunately when I tap on the notification nothing happens (the notification is just dismissed). This is how I handle the message in the onMessageReceived callback:

final NotificationClient notificationClient = pinpointManager.getNotificationClient();

final NotificationDetails notificationDetails = NotificationDetails.builder()
        .from(remoteMessage.getFrom())
        .mapData(remoteMessage.getData())
        .intentAction(NotificationClient.FCM_INTENT_ACTION)
        .build();

NotificationClient.CampaignPushResult pushResult = notificationClient.handleCampaignPush(notificationDetails);

Is there anything I am missing?

Conflicting documentation on Step 3 Part 7

I don't know if I'm going crazy from reading this several times, but on Creating Lambda Functions, Step 3, part 7. it says to create an environment variable with a key of AppId.

However, in the example image it shows ProjectId rather than AppId. I'm assuming ProjectId is what you meant.

It's also confusing since I'm running into issues after completing this entire guide multiple times.

How are APNS device tokens handled for building Segments?

I'm missing a very fundamental piece of how APNs work with AWS Pinpoint.
I have defined a APNs channel and can generate Pinpoint events from my iOS device but when I build a segment off of those events, the endpoint ids are not device tokens. How can I build segments and notify those iOS endpoints without the device token? I can create an endpoint attribute and save the device token as an attribute but I don't believe I can pivot that data into a notification destination.
The best I can think of is that I save it as an attribute, export the segment, edit the CSV, import the new segment file and then target that new segment. I'm assuming that's there's a better way.
Any ideas?

设置电子邮件首选项管理系统

目前按官方文档走下来所遇到的问题:

问题一:

按照官方文档的描述,在电子邮件的正文中,请包含“Unsubscribe (退订)”或“Change your email preferences (更改您的电子邮件首选项)”链接。使用以下 URL 作为链接的目的地,

微信截图_20200730144223

创建 message 时,将该 URL 填充到 编辑器会包异常
微信截图_20200730145121

问题二:

请问 URL 是怎么设置

这样?

<a  href="https://www.example.com/prefs.html?firstName={{User.UserAttributes.FirstName}}&lastName={{User.UserAttributes.LastName}}&email={{Attributes.Email}}&endpointId={{Attributes.EndpointId}}&t1={{Attributes.SpecialOffersOptStatus}}&t2={{Attributes.NewProductsOptStatus}}&t3={{Attributes.ComingSoonOptStatus}}&t4={{Attributes.DealOfTheDayOptStatus}}">Unsubscribe (退订)<a/>

还是这样?

<a  href="https://www.example.com/prefs.html?firstName=Carlos&lastName=Salazar&email=recipient%40example.com&endpointId=12345">Unsubscribe (退订)<a/>

Documentation for using Firebase Messaging for Android Push Notifications is not working for me

I wanted to convert the last part of my project from using GCM to using Firebase Messaging, which is Amazon Pinpoint. Google says that GCM will be switched off in 9 months. I can't work out how to switch over Amazon Pinpoint whereas other notification using services provided easy to use migration guides.

I've tried the documentation in this repo:
https://github.com/awsdocs/amazon-pinpoint-developer-guide/blob/master/doc-source/mobile-sdk-android-push-fcm.md

The trouble is that the documentation isn't versioned to the SDK. In 2.6.25, AWSMobileClient doesn't have a method defaultMobileClient(). I've tried to work it out from the methods available with autocompletion but I've failed.

The bits of the documentation about extending FirebaseInstanceIdService and FirebaseMessagingService do not give enough information about what needs to be done and how to hook these services into your app.

The Pinpoint documentation website only seems to cover GCM:
https://docs.aws.amazon.com/aws-mobile/latest/developerguide/add-aws-mobile-push-notifications.html

Expo push notification integration

I would love to easily send push notifications with Pinpoint and use Expo's push servers instead of setting up my own. Currently, I can do this with a Lambda function, but an easier integration would be nice, especially when we scale and have non-technical staff members manage the campaigns.

Push Notifications using Amplify + Pinpoint and Cognito

Its proving difficult to add push notifications with Pinpoint for my project. 1) We have set up a cognito user pool. 2) we have our own database which we will filter to select a group of users (SDB)--based on our custom attributes-- so that we can send push notifications to that group triggered by specific events. 3) we want to use cognito ID to match the users of the selected SDB to then pass on to pinpoint so that it can be sent to the GCN or APNs channels. 4) we are doing the logic for selecting the SDB in the back end. The questions are: a) can you help me with a roadmap for this implementation; b) do you have code examples that would help me with "targeting" a group that was selected given my custom criteria (steps 2 and 3). the documentation is very light, once you go to your latest products (amplify+pinpoint).. need a little push to implement your products.

I found some examples in amplify and here https://stackoverflow.com/questions/51543607/aws-amplify-push-notifications-with-react-native, but these are for the client side, not the backend

Send message to Viber

Hi.

I'm figuring out how to use Viber as a messaging channel. Hoping someone can help.

Thank you so much.

No email rendering failure event on docs

Hello,

I need rendering failure events to be streamed to my Kinesis stream.

I am using the javascript SDK with the method sendMessage

Also, didn't find anything on the here:

At https://github.com/awsdocs/amazon-pinpoint-developer-guide/blob/master/doc-source/event-streams-data-email.md

Although there are a few mentions here:
https://docs.aws.amazon.com/pinpoint/latest/developerguide/permissions-stream-email-events-kinesis.html

On Rendereing Failures

Thanks

*SENDING* push notification from the client side, or invoking a push notification send from the cilent side on iOS

State your question

I need to send push notification client side

Which AWS Services are you utilizing?

Amplify, GraphQL, Pinpoint.

Provide code snippets (if applicable)

    let params = AWSPinpointTargetingSendMessagesRequest()!
    params.applicationId = _appid
    params.messageRequest = nil

I do not know how to specify the messageRequest object per documentation here https://aws-amplify.github.io/aws-sdk-ios/docs/reference/AWSPinpoint/Classes/AWSPinpointTargeting.html. In javascript it would be a simple JSON object like:

const sendMessagesParams = {
    ApplicationId: process.env.PINPOINT_APP_ID,
    SendUsersMessageRequest: {
        Users: {
            [whoReceive]: {}
        },
        MessageConfiguration: {
            APNSMessage: {
                Action: 'OPEN_APP',
                Title: 'You have a new message',
                SilentPush: false,
                Body: content
            },
            GCMMessage: {
                Action: 'OPEN_APP',
                Title: 'You have a new message',
                SilentPush: false,
                Body: content
            }
        }
    }
};

Environment(please complete the following information):

  • SDK Version: [latest]
  • Dependency Manager: [POD]
  • Swift Version : [4.0]

Device Information (please complete the following information):

  • Device: [iphone 11]
  • iOS Version: [ iOS 13.4]
  • Specific to simulators:

If you need help with understanding how to implement something in particular then we suggest that you first look into our developer guide. You can also simplify your process of creating an application, as well as the associated backend setup by using the Amplify CLI.

access denied exception for mobiletargeting:GetUserEndpoints

User: arn:aws:iam::{{userinfo}}:user/{{username}} is not authorized to perform: mobiletargeting:GetUserEndpoints on resource: arn:aws:mobiletargeting:

I am using the java sdk to send a push notification to a specific endpoint that I am trying to retrieve via a userId. I am seeing an access denied exception because i do not have authorization to perform mobiletargeting:GetUserEndpoints - I do not see this role anywhere in the documentation? Is this the correct role to add to my IAM user?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.