### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

My SQS queue is not receiving notifications from SNS when they both have fifo enabled:

```
# Create SNS topic
docker exec -it localstack awslocal sns create-topic --name my-topic.fifo --attributes FifoTopic=true

# Create SQS queue
docker exec -it localstack awslocal sqs create-queue --queue-name my-queue.fifo --attributes FifoQueue=true

# Subscribe queue to topic
docker exec -it localstack awslocal sns subscribe --topic-arn arn:aws:sns:us-east-1:000000000000:my-topic.fifo --protocol sqs --notification-endpoint http://localhost:4566/000000000000/my-queue.fifo

# Send test notification
docker exec -it localstack awslocal sns publish-batch --topic-arn arn:aws:sns:us-east-1:000000000000:my-topic.fifo --publish-batch-request-entries Id=myId,Message=myMessage,MessageGroupId=myMessageGroupId,MessageDeduplicationId=myMessageDeduplicationId

# Receive messages
docker exec -it localstack awslocal sqs receive-message --queue-url http://localhost:4566/000000000000/my-queue.fifo --attribute-name All
```
Output:
```
{
    "TopicArn": "arn:aws:sns:us-east-1:000000000000:my-topic.fifo"
}
{
    "QueueUrl": "http://localhost:4566/000000000000/my-queue.fifo"
}
{
    "SubscriptionArn": "arn:aws:sns:us-east-1:000000000000:my-topic.fifo:46cd4bc8-c572-4a5b-ab69-cd0db1b160b4"
}
{
    "Successful": [
        {
            "Id": "myId",
            "MessageId": "c9b2c232-4a56-4875-9e11-21cb6b386221"
        }
    ],
    "Failed": []
}
```

No messages were received.


### Expected Behavior

If I do the above steps without fifo on SNS and SQS, then it works as it should:
```
docker exec -it localstack awslocal sns create-topic --name my-topic
docker exec -it localstack awslocal sqs create-queue --queue-name my-queue
docker exec -it localstack awslocal sns subscribe --topic-arn arn:aws:sns:us-east-1:000000000000:my-topic --protocol sqs --notification-endpoint http://localhost:4566/000000000000/my-queue
docker exec -it localstack awslocal sns publish-batch --topic-arn arn:aws:sns:us-east-1:000000000000:my-topic --publish-batch-request-entries Id=myId,Message=myMessage,MessageGroupId=myMessageGroupId,MessageDeduplicationId=myMessageDeduplicationId
docker exec -it localstack awslocal sqs receive-message --queue-url http://localhost:4566/000000000000/my-queue --attribute-name All
```
Outputs:
```
{
    "TopicArn": "arn:aws:sns:us-east-1:000000000000:my-topic"
}
{
    "QueueUrl": "http://localhost:4566/000000000000/my-queue"
}
{
    "SubscriptionArn": "arn:aws:sns:us-east-1:000000000000:my-topic:06b585e5-5ac3-434b-b817-489694fa891b"
}
{
    "Successful": [
        {
            "Id": "myId",
            "MessageId": "46bb7006-4e5e-4472-a1c0-29c902edff2c"
        }
    ],
    "Failed": []
}
{
    "Messages": [
        {
            "MessageId": "1a7d9db0-430b-424f-b23c-9f8f2f5f5c5f",
            "ReceiptHandle": "NjU0ZjJjMDYtN2I0Yy00OTgzLThmMzYtNWVjNTQ5ZjAwNWEzIGFybjphd3M6c3FzOnVzLWVhc3QtMTowMDAwMDAwMDAwMDA6bXktcXVldWUgMWE3ZDlkYjAtNDMwYi00MjRmLWIyM2MtOWY4ZjJmNWY1YzVmIDE2NjAyMzg2MzAuMzg4NzAyOQ==",
            "MD5OfBody": "f7ad57b0788283b7afaa4dba8ea1784b",
            "Body": "{\"Type\": \"Notification\", \"MessageId\": \"46bb7006-4e5e-4472-a1c0-29c902edff2c\", \"TopicArn\": \"arn:aws:sns:us-east-1:000000000000:my-topic\", \"Message\": \"myMessage\", \"Timestamp\": \"2022-08-11T17:23:49.814Z\", \"SignatureVersion\": \"1\", \"Signature\": \"EXAMPLEpH+..\", \"SigningCertURL\": \"https://sns.us-east-1.amazonaws.com/SimpleNotificationService-0000000000000000000000.pem\", \"UnsubscribeURL\": \"http://localhost:4566/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-east-1:000000000000:my-topic:06b585e5-5ac3-434b-b817-489694fa891b\"}",
            "Attributes": {
                "SenderId": "000000000000",
                "SentTimestamp": "1660238629853",
                "ApproximateReceiveCount": "1",
                "ApproximateFirstReceiveTimestamp": "1660238630388"
            }
        }
    ]
}
```

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

#### How are you starting localstack (e.g., `bin/localstack` command, arguments, or `docker-compose.yml`)

    docker run localstack/localstack

#### Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

    awslocal s3 mb s3://mybucket


### Environment

```markdown
- OS: 5.4.0-1086-azure (Github Codespaces)
- LocalStack:latest

docker-compose.yml

localstack:
    image: localstack/localstack:latest
    container_name: localstack
    environment:
      - SERVICES=sqs,sns
      - AWS_DEFAULT_REGION=us-east-1
      - EDGE_PORT=4566
    ports:
      - '4566-4597:4566-4597'
    volumes:
      - "${TMPDIR:-/tmp/localstack}:/var/lib/localstack"
      - "/var/run/docker.sock:/var/run/docker.sock"
    networks:
      - app_network
```
```


### Anything else?

_No response_
call_moto(context)
    def create_platform_application(
        self, context: RequestContext, name: String, platform: String, attributes: MapStringToString
    ) -> CreatePlatformApplicationResponse:
        moto_response = call_moto(context)
        return CreatePlatformApplicationResponse(**moto_response)
    def create_platform_endpoint(
        self,
        context: RequestContext,
        platform_application_arn: String,
        token: String,
        custom_user_data: String = None,
        attributes: MapStringToString = None,
    ) -> CreateEndpointResponse:
        result = None
        try:
            result = call_moto(context)
        except DuplicateSnsEndpointError:
            
            for e in self.platform_endpoints.values():
                if e.token == token:
                    if custom_user_data and custom_user_data != e.custom_user_data:
                        
                        raise DuplicateSnsEndpointError(
                            f"Endpoint already exist for token: {token} with different attributes"
                        )
        return CreateEndpointResponse(**result)
    def unsubscribe(self, context: RequestContext, subscription_arn: subscriptionARN) -> None: