Swush icon indicating copy to clipboard operation
Swush copied to clipboard

Cannot select or enter bundle ID

Open maxbobse opened this issue 2 years ago • 1 comments

For the bundle ID the drop down does not show any values. I am also not able to enter anything in that field.

Screenshot 2023-01-24 at 21 52 46

Swush: 0.1.0 (8) macOS: 13.1 (22C65)

maxbobse avatar Jan 24 '23 20:01 maxbobse

I don't know what is data source for values in dropdown. But I'm able to clone repo (v0.4.1) and just replace

    private var topicForm: some View {
        Input(label: "Bundle id", help: "The topic for the notification. \nMost of the time, the topic is your app's bundle ID/app ID. It can have a suffix based on the type of push notification. \nIf you are using a certificate that supports Pushkit VolP or watchOS complication notifications, you must include this header with bundle ID of you app and if applicable, the proper suffix. \nIf you are using token-based authentication with APNs, you must include this header with the correct bundle ID and suffix combination") {
            switch appState.selectedCertificateType {
            case .keychain:
                Picker(selection: $appState.selectedTopic, content: {
                    ForEach(appState.topics, id: \.self) {
                        Text($0)
                    }
                }, label: {})
            case .p8:
                TextField(text: $appState.selectedTopic, prompt: Text("com.qeude.Swush"), label: {})
                    .textFieldStyle(.roundedBorder)
            }
        }
    }

to

    private var topicForm: some View {
        Input(label: "Bundle id", help: "The topic for the notification. \nMost of the time, the topic is your app's bundle ID/app ID. It can have a suffix based on the type of push notification. \nIf you are using a certificate that supports Pushkit VolP or watchOS complication notifications, you must include this header with bundle ID of you app and if applicable, the proper suffix. \nIf you are using token-based authentication with APNs, you must include this header with the correct bundle ID and suffix combination") {
            TextField(text: $appState.selectedTopic, prompt: Text("com.qeude.Swush"), label: {})
                .textFieldStyle(.roundedBorder)
        }
    }

at Sources/Modules/Sender/SenderView

And it work as expected

sainecy avatar Mar 01 '23 16:03 sainecy